I have a Highstock chart with type scatter
. When I use the range selector some of the series disappear cause the have no data in the current range. How can I prevent the chart from scaling to only the existing data an keep the yaxis in the initial state?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I can see only two options:
- set fixed min and max for yAxis
- in
afterSetExtremes
callyAxis[0].setExtremes(min, max)
in setTimeout function, but you need to calculate min and max on your own.