Abrissirba,
The problem is not "
where to save the value" but "
when should we check whether the zoom is active". It is available from the chart object
chart.resetZoomButton:
https://jsfiddle.net/BlackLabel/ew2syvmL/
(in afterSetExtremes function
this = xAxis and
chart = xAxis.chart)
But the real question is
when you want to check whether chart is zoomed. If you want to check it every zoom action that
afterSetExtremes event is best for that. But if you want to check if e.g on click, you don't need
afterSetExtremes event:
https://jsfiddle.net/BlackLabel/62ufzpvc/
When it comes to a custom logic for reset - do you want to go back 1 zoom level after clicking the button instead of the whole reset? This is a common question.