Is there any way to automatically calculate the axis labels' step size in Highcharts ?

╄→尐↘猪︶ㄣ 提交于 2020-01-24 22:11:47

问题


I have 1000~ data labels on the xAxis and finding a way to automatically calculate the step based on the number of data labels and size of the charts.

Based on the documentation , if I do not set the step property of xAxis.labels , it will be calculated automatically, But in my case it is not.

  • Current output:

  • Expected output:

Currenlty the labels look as shown in the image. I'd expect the labels to drop automatically and do not show the ellipses. Any help would be much appreciated. Thanks.

-I'm using Highcharts-5.0.8

来源:https://stackoverflow.com/questions/44935924/is-there-any-way-to-automatically-calculate-the-axis-labels-step-size-in-highch

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