How to prevent Highstock from hiding data rows

2019-09-18 07:09发布

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条回答
Fickle 薄情
2楼-- · 2019-09-18 07:53

I can see only two options:

  • set fixed min and max for yAxis
  • in afterSetExtremes call yAxis[0].setExtremes(min, max) in setTimeout function, but you need to calculate min and max on your own.
查看更多
登录 后发表回答