mcmcom
Posts: 2
Joined: Mon Nov 22, 2021 2:43 pm

Color Gantt Series

hi,

is it possible to color all items in my series the same color? I am having a really hard time understanding how the coloring items works. For example i have a task and two sub-tasks (3 in total) for my gantt chart, they collapse into one row as per the demo but they are all different colours, i'd like each series to be it's own colour so all three bars in the series are similar. is this possible?

thanks,
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Color Gantt Series

Hi mcmcom,

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

Yes, it is possible. You need to set color for series and disable colorByPoint option.

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

[API Reference:
https://api.highcharts.com/gantt/series.gantt.color
https://api.highcharts.com/gantt/series ... lorByPoint

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
mcmcom
Posts: 2
Joined: Mon Nov 22, 2021 2:43 pm

Re: Color Gantt Series

Thanks for this, it helps greatly.

all the best,
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: Color Gantt Series

You're welcome! In case of any further questions, feel free to contact us again.
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Gantt”