fire the selection event for Stock navigator or rangeSelector changes
chart.events.selection() does not appear to fire for Highchart Stock navigator or rangeSelector changes. This makes sense because it's the same as a zoom selection on main pane.
I'm using the selection event to return to the server and retrieve higher-resolution data (a drill down), but this fails when these other navigation changes take place. The redraw event does not work because it fires too often.
The selection event only applies to graphic selection. Instead, use the xAxis.events.setExtremes event, which fires in all these cases.
-
Chad commented
Thanks, I hadn't yet found xAxis.events.setExtremes(). I got it to work OK, but only by adding my own locking/blocking when doing setData() to multiple series' because setExtremes() fires pretty often.
Thanks for the fine (free) plotting product, I've got a great drill-down Stock graph going that re-fetches data from a service/cgi. Had to abandon the rangeSelector and make my own buttons though since the xAxis for those is not tied to the navigator.