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.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
| Allocation State | Default Color | Meaning |
|---|---|---|
| Within capacity | Green | Resource workload is at or below available hours |
| Over-allocated | Red/Orange | Resource workload exceeds available hours |
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.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: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)
How Resource Load Modes Affect Markers
The marker display varies depending on the configuredresourceLoadMode:
| Load Mode | Marker Shows | Color Trigger |
|---|---|---|
num | Task count per resource per day | Exceeds item threshold |
time | Allocated hours per day | Exceeds available working hours |
remaining | Remaining capacity (hours) | Negative value (overallocation) |
allocation | Percentage of capacity used | Exceeds 100% |
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.