Choose a Coloring Mode
The Gantt supports two coloring modes that determine how task bar colors are applied:| Mode | How It Works | Color Property | Use When |
|---|---|---|---|
| Static | All progress-based coloring is disabled; you set every color manually via Item Script | task.color | You want complete control over every task bar color |
| Dynamic | Progress-based colors (overdue, delayed, on-track, resolved) are applied automatically; you can override only the default blue color | task.taskColor | You want schedule-status awareness with selective customization |
Option 1: Static Coloring
Disable all progress-based colors and assign colors entirely through Item Scripts. Add to Widget Properties > Advanced > Gantt Config Script:task.color to set the task bar color. This property overrides all automatic coloring, giving you full control.
Option 2: Dynamic Coloring
Keep progress-based status colors active while customizing specific aspects. To change the default blue color for on-track items, add to Widget Properties > Advanced > Item Script:task.taskColor to change only the default (blue) color. Items that are overdue, delayed, or resolved retain their progress-based colors regardless of task.taskColor.
Customize Progress Color Defaults
Override the default progress colors at the project or server level. Add the following under Administration > Configuration Properties:Verify
You should now see that task bars display colors according to your chosen mode. In static mode, all bars use the colors assigned in the Item Script. In dynamic mode, overdue items appear in your configured overdue color, delayed items in the progress-due color, and on-track items in either the default blue or your customtask.taskColor value.
See Also
- Customize Progress-Related Coloring
- Color Logic Script Examples
- Write Item Scripts
- Write Gantt Config Scripts
- Configure Resource Allocation Marker Colors
Sources
Sources
KB ArticlesSupport TicketsSource Code
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Aresource-view/ganttMarkersColorConfigValidation.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/default.jsonprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/resourceAllocation.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/view/markersStyles.cy.ts