Aim: Upon clicking on reset-zoom button, I want chart to not reset to default axis extremes but want to set axis extremes to a manual range.
Example steps:
1. I have a chart whose yAxis ranges from [0, 250].
2. Now, I zoom into a certain range.
3. Then upon clicking on reset-zoom button, by default, highcharts will set axis extremes to [0, 250].
4. Instead, upon clicking on reset-zoom button, I want to set axis extremes to say [100, 200].
5. I want some time-lag of 0.5 sec b/w clicking on reset-zoom button and setting of axis extremes to [100, 200].
I tried this - Manually set axis extremes in [events.selection](
https://api.highcharts.com/highcharts/c ... .selection) - See [fiddle](
https://jsfiddle.net/m7wpjLr3/).
The issue is that both step-3 and step-4 both are executed; You can see 'afterSetExtremes' being called twice. I want only step-4 to get executed. Is there a way to stop setting of axis extremes to default range done internally by highcharts upon clicking on reset-zoom?
Also, my team is also considering: Disable the default reset-zoom button completely and instead create a custom reset-button. And the click hander of new button will have its own step-5 logic. In that way highcharts firing axis update to default range will not be in picture altogether. I was looking at
viewtopic.php?t=44055#p155883.