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
showTodayLineto control the today flag andprojectLineDateto set a project reference date. SetshowMilestoneLinestofalseto hide configured milestone flags. timeRangesuses inclusive start and end dates. When non-working-time shading is configured in bothzoomandvisuals, the zoom setting takes precedence.- Set
showBaselineto compare the current schedule with a baseline. SetbaselineIdto select the snapshot, or omit it to use the latest one. - Set
showCriticalPathto highlight critical-path tasks.