silestis
Posts: 32
Joined: Thu Mar 15, 2018 10:25 am

Gantt navigator is reset when gantt data is updated

Hi,

we are using Highcharts as our charting library for our new application. We are now in testing phase - we need to be sure that it can cover all our needs. It seems it will cover everything, but recently we found a following problem ...

Here is the JSFiddle:
https://jsfiddle.net/rx3ewmuL/

Steps to reproduce that issue:
1) When chart is displayed, change size of the navigator "zoom range" and move it somewhere to the middle

Image

2) Wait for setInterval() countdown trigger, which will run a function that will update data in gantt
3) Navigator "zoom range" is reset

Image

Question is: Why the navigator below the gantt chart is reset to the default position every time when gantt data is updated?

Thanks a lot.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Gantt navigator is reset when gantt data is updated

Hi silestis!
Thanks for choosing our charts and contacting us.

If you want to load data dynamically in the gantt chart series you need to set the navigator option.
Everything is fine when you set navigator.adaptToUpdatedData to false, a note from our API
When loading data async, as in the demo below, this should be false.

https://api.highcharts.com/gantt/naviga ... pdatedData

Live demo:
https://jsfiddle.net/BlackLabel/mubay3dx/

Let me know if that was what you were looking for.
Best regards.
Sebastian Hajdus
Highcharts Developer
silestis
Posts: 32
Joined: Thu Mar 15, 2018 10:25 am

Re: Gantt navigator is reset when gantt data is updated

Thanks a lot Sebastian for the replay, but unfortunately it is not working as we need. Navigator below the gantt stopped resetting itself to the left side when gantt data is updated, but now you can't see anything inside navigator. Before, it was a "small version" of the gantt. This functionality we have to keep.

Do you have any other idea how to solve this problem?

Thank you in advance.

Best regards,
David
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Gantt navigator is reset when gantt data is updated

Hi,

I suppose this is a bug, or the problem is with the way the data is loaded asynchronously, you can try loading the data in the redraw event.
I need more time to test this case.

API References:
https://api.highcharts.com/gantt/chart.events.redraw

Keep me in the loop.
Best regards.
Sebastian Hajdus
Highcharts Developer
silestis
Posts: 32
Joined: Thu Mar 15, 2018 10:25 am

Re: Gantt navigator is reset when gantt data is updated

It does not work. Same problem.

Please, let us know here if you will solve that bug or will have some news regarding that. It is very important to us, so we are closely monitoring this topic. Also, if you can give priority to this bug, we would very appreciate it.

Thanks a lot,
David and the rest of the team
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Gantt navigator is reset when gantt data is updated

Hi,

You tried a similar solution with loading in an event like this, right?
https://jsfiddle.net/gh/get/library/pur ... mic-update

If you want you can report this bug on GitHub issue:
https://github.com/highcharts/highchart ... .md&title=

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”