Our state of the art Gantt chart


Post by rahulranjan »

How critical path for an parent task and child task is calculated.

Post by pmiklashevich »

The critical path is a chain of linked tasks that directly affects the project finish date. If any task on the critical path is late, the whole project is late.

Pavlo Miklashevych
Sr. Frontend Developer


Post by rahulranjan »

Hi
1. How you determine which activity is critical?
2. Have we have to pass any extra fields from backend. like totalSlack.
3. In Demo data set i can see you don't pass any extra fields.
4. But in
Columns columns : [
{ type : 'name' },
{ type : 'earlystartdate' },
{ type : 'earlyenddate' },
{ type : 'latestartdate' },
{ type : 'lateenddate' },
{ type : 'totalslack' }
You use this why . Is total slack auto calculated.

Post by pmiklashevich »

Both totalSlack and critical fields are automatically calculated.
1. How you determine which activity is critical?
A task is considered to be critical if its delaying causes the project delay. The field value is calculated based on totalSlack field value.
2. Have we have to pass any extra fields from backend. like totalSlack.
No, you shouldn't pass any extra fields from backend. totalSlack is calculated too. Total slack is amount of working time the task can be delayed without causing a delay to the project end.
3. In Demo data set i can see you don't pass any extra fields.
Yes, that's correct. In examples/_datasets/criticalpaths.json we don't have any extra fields related to slack
4. But in
Columns columns : [
{ type : 'name' },
{ type : 'earlystartdate' },
{ type : 'earlyenddate' },
{ type : 'latestartdate' },
{ type : 'lateenddate' },
{ type : 'totalslack' }
You use this why . Is total slack auto calculated.
The lines you provided from examples/criticalpaths/app.js are correct. Yes, total slack is autocalculated.

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply