How to dynamically change axis from linear to logarithmic in HighChart

好久不见. 提交于 2019-12-23 21:47:47

问题


I want to dynamically change axis from linear to logarithmic and vice versa in HighCharts. Please see this fiddle example.

yAxis: {
    //linear
    type: 'logarithmic',
    minorTickInterval: 0.1
},

There is a type: String in api For initial declarative chart setup. I want to dynamically change to logarithmic/linear back and forth.


回答1:


Use axis.update, see: http://jsfiddle.net/ZCecV/1/ (docs: http://api.highcharts.com/highcharts#Axis.update() )



来源:https://stackoverflow.com/questions/16324284/how-to-dynamically-change-axis-from-linear-to-logarithmic-in-highchart

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