bazzacad
Posts: 20
Joined: Mon Jun 26, 2017 9:00 pm

Nested data on the same row

Sorry I'm not sure how to describe my issue very well. I have nested data, like so.
Each employee & the projects they're assigned to.
I'd like to show multiple start & end dates on the same row for a project.
It looks like it can be done here: https://www.highcharts.com/demo/gantt/r ... management
But this example doesn't have the nested data.
When I tried to set the 'y' to be the same number, they get forced to be different numbers.
2022_03_17_17_14_40_Team_Schedule.png
2022_03_17_17_14_40_Team_Schedule.png (54.99 KiB) Viewed 1407 times
bazzacad
Posts: 20
Joined: Mon Jun 26, 2017 9:00 pm

Re: Nested data on the same row

Is this not possible?
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Nested data on the same row

HI,

Thanks for contacting us!

For grouping tasks in a Gantt chart on horizontal tracks, use a vertical category axis. You will find more information in the following article:
https://www.highcharts.com/docs/gantt/g ... ping-tasks

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
bazzacad
Posts: 20
Joined: Mon Jun 26, 2017 9:00 pm

Re: Nested data on the same row

Thanks for the reply. But this article seems to show how to group sub-tasks by hierarchy OR vertically.
I'd like to do both hierarchy AND vertically. Do you have a example showing both groupings at the same time?
Like so:
2022-03-21 10_36_22-Grouping tasks in a hierarchy _ Highcharts.png
2022-03-21 10_36_22-Grouping tasks in a hierarchy _ Highcharts.png (15.83 KiB) Viewed 1372 times
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Nested data on the same row

Hi,

Thank you for precising. To have many points in one row, you need to set yAxis.uniqueNames to true and define points with the same name:

Example demo:
https://jsfiddle.net/BlackLabel/qcjxt3s2/

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
bazzacad
Posts: 20
Joined: Mon Jun 26, 2017 9:00 pm

Re: Nested data on the same row

Thanks, I've almost got it working now, but when I have yAxis.uniqueNames set to false, my chart looks like this:
2022-03-22 10_42_12-Team Schedule.png
2022-03-22 10_42_12-Team Schedule.png (30.76 KiB) Viewed 1354 times
And when I change yAxis.uniqueNames to true, it looks like this:
2022-03-22 10_45_21-Team Schedule.png
2022-03-22 10_45_21-Team Schedule.png (21.64 KiB) Viewed 1354 times
The row heights get very large & I haven't changed any other code.
I'm on 10.0.0, what's going wrong here?
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Nested data on the same row

Hi,

Could you please reproduce your config in an online editor that I could work on? It would be very helpful for a better understanding of the issue and finding the right solution!

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Nested data on the same row

Hi,

thank you for providing a demo!

I've noticed we have reported a bug related to this behaviour, which you can track here: https://github.com/highcharts/highcharts/issues/11796
You will find the workaround in the above thread as well.

Regards!
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Gantt”