how to set space Between Labels of xAxis

↘锁芯ラ 提交于 2019-12-23 22:27:15

问题


I got a problem of chart showing,you can see it from the picture.The old version of charts has api spaceBetweenLabels to set space Between Labels. I only find api spaceMax and spaceMin in the newest version. I try to use them to set space between Labels, but that failed. I also tried to use api labelWidth to solve the problem, which failed too. enter image description here


回答1:


Just set property xAxis.avoidFirstLastClippingEnabled to true, e.g. myChart.xAxis.avoidFirstLastClippingEnabled = true



来源:https://stackoverflow.com/questions/43491480/how-to-set-space-between-labels-of-xaxis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!