simon_m_ageval
Posts: 2
Joined: Wed Jul 10, 2024 9:38 am

Shown data empty

Hello,

I have a weird bug with gantt chart.

My shown gantt is empty when I insert in data a specifique number of entity.

If my chart is 180 items, it OK => https://codepen.io/Simon_Maucorps/pen/xxobqYp

But if my chart has 179 items it's KO => https://codepen.io/Simon_Maucorps/pen/yLdyMKa

My code is exacly the same, I just drop one item from my first example on my second example.

Please, how is possible that my 180 items gantt work but not my 179 items (with the same data) ?

I don't understand and I need to this code working.

Best regards,

Simon Maucorps
bastss
Site Moderator
Posts: 1301
Joined: Wed Oct 17, 2018 10:59 am

Re: Shown data empty

Hello,

Thank you for contacting us!

It seems that the defined min and max range for the xAxis in the second demo is responsible for that, check this demo (line 1690 & 1691 are commented): https://jsfiddle.net/BlackLabel/yndrwgm8/


API: https://api.highcharts.com/gantt/xAxis.min

Kind regards!
Sebastian Wędzel,
Highcharts Developer
simon_m_ageval
Posts: 2
Joined: Wed Jul 10, 2024 9:38 am

Re: Shown data empty

Hello,
Thank you for your answer !

Unfortunately, I need to have a specified min and max range, I need this to work.

As I said, it's weird that it works in the first example but not second example. The difference between those two is a removed data in the second example.

Best regards,

Simon Maucorps
bastss
Site Moderator
Posts: 1301
Joined: Wed Oct 17, 2018 10:59 am

Re: Shown data empty

Hello,

I dug more into this topic and it seems that you were right! It is a bug, some kind of regression to be more specific, in the previous version everything works fine: https://jsfiddle.net/BlackLabel/jvnc8ph6/, so please use this last stable version (11.4.1) as a workaround. I think that it is related to this topic: https://github.com/highcharts/highcharts/issues/21314, feel free to take a part in the thread and share your example.

Kind regards!
Sebastian Wędzel,
Highcharts Developer

Return to “Highcharts Gantt”