Default Color Legend
Out of the box, the Gantt uses dynamic coloring to indicate schedule status:| Color | Condition | Meaning |
|---|---|---|
| Red | End date is in the past, work item is unresolved | Overdue — should have been finished |
| Orange | End date is in the future, but progress is behind schedule | Delayed — progress is not keeping pace |
| Blue | End date is in the future, progress is on track | On track — schedule and progress are aligned |
| Gray | Work item is resolved | Completed |
| Light Blue | Start date defaults to today (no scheduled date) | Unplanned — not yet scheduled |
| Green | Item is set to project type via Item Script | Parent item — schedule derived from children |
Change Progress Colors per Widget
Override the default progress colors for a specific Gantt widget by adding the following to Widget Properties > Advanced > Gantt Config Script:task.taskColor in the Item Script to change it.
Change Progress Colors Across Projects
Set default progress colors at the project or server level under Administration > Configuration Properties:Configure Unplanned Item Colors
Unplanned items (those with no scheduled start date) have their own color properties:unplanned_color sets the task bar background and unplanned_color_fg sets the text color for unplanned items.
Combine with Custom Item Script Colors
When using dynamic (progress-based) coloring, you can selectively override the default blue color for specific work item types usingtask.taskColor in the Item Script:
Verify
You should now see that task bars use your customized progress colors. Overdue items appear in your configured overdue color, delayed items in your progress-due color, and resolved items in your resolved color. Unplanned items display with the configured unplanned background and foreground colors.See Also
- Configure Item Colors
- Color Logic Script Examples
- Write Item Scripts
- Write Gantt Config Scripts
- Track and Calculate Progress
Sources
Sources
KB Articles
- Calculate item progress from time estimates
- Customizing Progress-Related Coloring in the Gantt Chart
- How to configure the Item Colors
- Item Color Legend
- API Example: Color Logic
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetConfig.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Config.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/working-calendars/capacity-modifiers.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Task.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/main.js