Skip to content

Timeline Overlays

Use gantt.visuals to mark important dates and periods across the timeline. The example includes a release window and a Go live flag.

grid.gantt = {
...project,
visuals: {
showTodayLine: true,
milestoneLines: [{ id: 'go-live', date: '2026-04-10', label: 'Go live' }],
timeRanges: [
{
id: 'release-window',
startDate: '2026-04-08',
endDate: '2026-04-10',
label: 'Release window',
},
],
shadeNonWorkingTime: true,
},
};
  • Use showTodayLine to control the today flag and projectLineDate to set a project reference date. Set showMilestoneLines to false to hide configured milestone flags.
  • timeRanges uses inclusive start and end dates. When non-working-time shading is configured in both zoom and visuals, the zoom setting takes precedence.
  • Set showBaseline to compare the current schedule with a baseline. Set baselineId to select the snapshot, or omit it to use the latest one.
  • Set showCriticalPath to highlight critical-path tasks.