I need to set minimum and maximum of yAxis of a Highcharts' chart. And I do NOT want the minimum and maximum to round to the ticks.
Highcharts documentation offers an example, which works great:
var chart = $('#container').highcharts(),
yAxis = chart.yAxis[0];
yAxis.options.startOnTick = false;
yAxis.options.endOnTick = false;
chart.yAxis[0].setExtremes(40, 210);
But when I do it with two y-axis, it doesn't work:
The minimum and maximum that chart uses are not what I set in the code. Anyone knows why?
将alignTicks参数设置为false。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.