简体   繁体   中英

Problems with range selector on highcharts (highstock)

I'm using two different charts of highstock, both of them have 2 series. Both charts are loaded in the same div depends which button is selected. To do this I set the series data when the user push the other buttons, the problem that I'm having is that in one chart I can select a minimum range of about 10 minutes, but in the other chart I can't select a range lower than one hour. Both are made with the same settings, the only different is that one have numbers with decimals and the other don't.

I want that you can select a range, change graph and keep in the other the selection. This work when the selection is bigger than 1 hour.

Hope you can help me.

You can try to use setExtremes() function which allows to define range. http://api.highcharts.com/highstock#xAxis.events.setExtremes

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM