Highstock with numbers instead of date in x-axis

余生长醉 提交于 2019-12-01 04:07:36

Highstock's only type of xAxis is datetime, so using it with numbers is not an option. (Maybe if you make some tricky formatting actions and define a custom tooltip with the same formatting options it might be possible).

Leaves only Highcharts and there is an example called master-detail chart that could meet your requirements.

Hope that helps.

user2504837

Below X Axis formatter can be used with high Stock for displaying numbers in X-Axis:

xAxis: {labels: {   formatter: function () {return this.value;}} }
xAxis: {
    type: 'linear' // Other types are "logarithmic", "datetime" and "category"
}, 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!