gilnahmias
Posts: 1
Joined: Tue Nov 22, 2022 12:49 am

How to add multiple items on a Gantt group row?

In this example https://jsfiddle.net/n5zLkahj/1/ there's a group with 2 children. I want the group row ("My Group") to show multiple items -- similar to the last row "same line". However seems like the API only allows a single data point (see JavaScript LoC 13, 14 in the fiddle).

Important: The data group doesn't necessarily reflect the union of its children.

Thank you so much!
Gil
kamil.k
Posts: 458
Joined: Thu Oct 06, 2022 12:49 pm

Re: How to add multiple items on a Gantt group row?

Hello Gil,

Welcome to our forum and thanks for contacting us with your question.

If I understood you correctly, you can simply add another data object with the same name property (assuming that the yAxis.uniqueNames property is set to true).
I have updated your demo, please take a look: https://jsfiddle.net/BlackLabel/0jxve7Lz/

Let me know if that works for you,
Best Regards!
Kamil Kubik
Highcharts Developer

Return to “Highcharts Gantt”