cascading-jox
Posts: 9
Joined: Thu Mar 24, 2022 10:29 am

Possible to synchronize navigator over multiple graphs?

Hi! I need a reply as soon as possible if synchronizing the navigator over multiple graphs or something similar is possible to implement using highcharts stock.

Expected behavior (from graphs using the R Shiny lib):

Image

Best regards,
cascading-jox
cascading-jox
Posts: 9
Joined: Thu Mar 24, 2022 10:29 am

Re: Possible to synchronize navigator over multiple graphs?

I apologize for making it seem like a duplicate. I forgot to write that I have found some demos like this one http://jsfiddle.net/BlackLabel/v31roh8c/ though it is one navigator for all the graphs. I assume going for separate highcharts complicate things quite a bit? :(
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Possible to synchronize navigator over multiple graphs?

Hello,

You can use the callback function xAxis.events.setExtremes() which is in the demo you sent for many charts but to avoid the "Maximum call stack size exceeded" error you have to use some flag to prevent an infinite loop.

Demo: http://jsfiddle.net/BlackLabel/oxsjer3n/
API: https://api.highcharts.com/highcharts/x ... etExtremes

Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/
cascading-jox
Posts: 9
Joined: Thu Mar 24, 2022 10:29 am

Re: Possible to synchronize navigator over multiple graphs?

Perfect! Just what I needed!

Best regards,
cascading-jox
michal.f
Posts: 1114
Joined: Thu Aug 12, 2021 12:04 pm

Re: Possible to synchronize navigator over multiple graphs?

You're welcome!

In case of any further questions, feel free to contact us again.
Best regards!
Michał Filipiec
Highcharts Developer
https://blacklabel.pl/highcharts/

Return to “Highcharts Stock”