I noticed that if I set the lag of a task to -1, all upstream tasks are no longer shown on the critical path. Why is this?
Gantt considers a task as a critical one in the following cases:
The task has the greatest end date in the whole chart.
The task is connected to a critical task, and the
durationbetween them is 0.
That depends on the
gantt.config.duration_unitparameter. When the
'day'and duration between tasks is several hours, Gantt will round the
If the link between tasks has the
lagparameter, it allows changing the
durationbetween tasks. When it is
1, the task becomes critical when the duration between tasks is 1. Here is the demo of those parameters:
gantt.config.project_endparameter is specified and the task dates are greater than the
Hi, ramil, my i know that the if we set the correct lag, the critical path with show with the right way?
PS: correct lag means the days of previous task end date and next task start date same to the lag.
If you set everything correctly, the critical path will be displayed.
In the following snippet, you can experiment with the parameters to see how it works: