Gantt task specify bar color

Can I specify a color for individual Gantt tasks bars?

Hello @NathanO,

Yes, you can do this as task bars support CSS-properties. In order to change the colors of each bar individually, you need to customize the Gantt. It is necessary to add richselect in form customization, in which you can select the desired color. As well as customization of the Backend service, within which color rendering will take place: Code Snippet

You can also add a subtype to each bar and define a color for the subtype. This is done by analogy with the customization described above, only in addition it is necessary to add chart/bars customization, in which the subtype will be assigned: Code Snippet

Thanks, the subtype is even better solution for me and is working well.

1 Like