Skip to main content

leveling_delays

info

This functionality is available in the PRO edition only.

Description​

Shows the resource leveling delay of tasks in the timeline

leveling_delays: boolean

Example​

gantt.config.leveling_delays = true;
gantt.init("gantt_here");

Default value: false

Details​

If the config is enabled, Gantt draws the leveling_delay of a task as a hatched area next to the task bar. In forward scheduling, the area lies before the bar. With backward scheduling (schedule_from_end), it lies after the bar.

The length of the area is the leveling_delay value, as calendar time in duration_unit. Non-working time is included. Gantt draws no area for summary tasks, for tasks with hide_bar, and for unscheduled tasks.

The label and the tooltip of the area come from the leveling_delay_text template.

When the date range of the chart is calculated from the tasks, it includes the delay areas.

Set the config before init. To change it later, call gantt.init() again.

To change the color of the area, set the --dhx-gantt-leveling-delay-color variable. By default, it is the task bar color:

:root {
--dhx-gantt-leveling-delay-color: #7a7a7a;
}

Change log​

  • added in v10.1
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.