artakserkses
Posts: 51
Joined: Tue Feb 23, 2021 11:23 am

Grouping tasks horizontally and vertically

Hello again :)

Is it possible to group tasks horizontally and vertically on the same chart?

Like here: https://jsfiddle.net/btvw6xg0/

But task 1, and task 2 group on one horizontal bar, and task e, f, g same (to have that on one horizontal bar)

Thanks for help :)
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Grouping tasks horizontally and vertically

Hi,
Welcome to our forum and thanks for contacting us with your question!

I have two possible way to achieve this, first is useing yAxis.uniqueNames and works only with axis type category.
https://api.highcharts.com/gantt/yAxis.uniqueNames
https://jsfiddle.net/BlackLabel/16e42Lf3/

Second is a some trick with translate points and use yAxis.breaks
https://api.highcharts.com/gantt/yAxis.breaks
https://jsfiddle.net/BlackLabel/4dxzcpgy/

Let me know what do you think about these solutions.
Best regards.
Sebastian Hajdus
Highcharts Developer
artakserkses
Posts: 51
Joined: Tue Feb 23, 2021 11:23 am

Re: Grouping tasks horizontally and vertically

O, this breakSize seems to be what I need, thx :)
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Grouping tasks horizontally and vertically

That's great. :)
If you have questions you can reach me any time.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”