Prerequisites
Before configuring marker colors, ensure the resource view is enabled on your Gantt widget. Navigate to Widget Properties > Resource View and set Show Resource View to Yes.1
Understand the Default Colors
The Gantt resource view uses color-coded markers in each time cell to communicate allocation status at a glance. The default colors are:
Markers are rendered with the
resource_marker resource_marker_variable_color classes, and each cell’s color is applied through an inline --marker_color custom property computed from the allocation value — there are no separate ok/over element classes to target. See Resource View CSS Classes for the marker DOM structure.2
Configure Colors via `resourceMarkersColorConfig`
You can override the default marker colors by providing a custom This sets within-capacity markers to blue and over-allocated markers to red.
resourceMarkersColorConfig object. This configuration accepts ok and over properties defining CSS color values.Add the following to Widget Properties > Advanced > Gantt Config Script:3
Configure Multi-Threshold Colors
For more granular color coding, you can define multiple color thresholds using the This configuration produces three zones:
colors and percentages arrays. The percentages array defines breakpoints (in ascending order), and the colors array defines the color for each range.- 0-50% allocation: Green (
#4CAF50) - 50-100% allocation: Orange (
#FB8C00) - Over 100% allocation: Red (
#E53935)
4
Apply Colors Globally via Configuration Properties
To set default marker colors across all Gantt widgets in your project, navigate to Administration > Configuration Properties and define the color configuration there rather than in individual widget scripts.
How Resource Load Modes Affect Markers
The marker display varies depending on the configuredresourceLoadMode:
Verification
You should now see color-coded resource allocation markers in the resource view below the Gantt chart. Within-capacity cells display in your configuredok color, and over-allocated cells display in your configured over color. If you used multi-threshold colors, intermediate allocation levels display the corresponding middle color.
If you see a validation error instead of colored markers, verify that your colors array has exactly one more element than your percentages array and that percentages are in ascending order.