leonaedelinski
Posts: 7
Joined: Tue Jan 31, 2023 8:18 pm

milliseconds data not displaying in Gantt chart

Hi, I have Gantt chart and some of the data is very small(in ms) and it is not displayed on the chart. I am attaching a screenshot of part of the chart. One example of data that is not displayed: start dates' timestamp is 1675762375366, and the end dates' timestamp is 1675762375370. How can I make them appear in the chart?

Image
jedrzej.r
Posts: 695
Joined: Tue Jan 24, 2023 11:21 am

Re: milliseconds data not displaying in Gantt chart

Hi!

Thanks for reaching out to us with your question.

It can happen when bigger values are present in data set, and when smaller value is being compared, it becomes insignifcant as it's too close to zero. To override this behaviour, you can set minPointLength property to a fixed number bigger than zero.

Demo: https://jsfiddle.net/BlackLabel/o7usqh4p/

API: https://api.highcharts.com/gantt/series ... ointLength

Let me know if this was what you were looking for.
Best regards!
Jędrzej Ruta
Highcharts Developer
leonaedelinski
Posts: 7
Joined: Tue Jan 31, 2023 8:18 pm

Re: milliseconds data not displaying in Gantt chart

yes, that is it, thanks :)
jedrzej.r
Posts: 695
Joined: Tue Jan 24, 2023 11:21 am

Re: milliseconds data not displaying in Gantt chart

Glad I could help you!

In case of any other questions related to Highcharts, feel free to ask anytime!
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Gantt”