DarioN1
Posts: 9
Joined: Fri Oct 15, 2021 1:23 pm

Save locally Navigator setup

Hi,
I need to locally save the navigator setup.
What I need is saving the current "Zoom" and the posizion of the window in order to be able to load it in a second moment.

How to do that ?
Is it possible ?

Thanks to support
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Save locally Navigator setup

Hello DarioN1,

Thanks for contacting us with your question.

Where would you like to save that setup? To save the current zoom and position of the window you need to get current extremes and apply them when you need to.

Regards!
Mateusz Bernacik
Highcharts Developer
DarioN1
Posts: 9
Joined: Fri Oct 15, 2021 1:23 pm

Re: Save locally Navigator setup

Hi !
I was thinking to save all in the localstorage in order to load them easily...
Are the extremes the only thing I need ?
mateusz.b
Posts: 2006
Joined: Tue Jul 13, 2021 11:34 am

Re: Save locally Navigator setup

Hello DarioN1,

Yes, that is all you need. Also I think that you might want to try afterSetExtremes event. It should help you catch current extremes, you could even use that event to save them in local storage.
API reference: https://api.highcharts.com/highcharts/x ... etExtremes

Feel free to ask any further questions.
Regards!
Mateusz Bernacik
Highcharts Developer

Return to “Highcharts Gantt”