When you programmatically call setExtremes
on a Highcharts axis, it fires the setExtremes
and afterSetExtremes
events for that axis. Similarly, those two events are also fired when the user clicks and drags on the chart to zoom in.
Is there an easy way to differentiate between those two actions? Specifically, I have a date range selector that, when changed, should call setExtremes
on the chart. I also want the range selector to update when the chart is zoomed by dragging. But if both actions fire the same events I have a loop. I could put some logic in to prevent that, but it would be much more elegant if I could use differents events for the two separate actions or suppress the events when I'm programmatically calling setExtremes
.