In this example, you can see how to render a Gantt Chart with critical path. The default timeline view week-day mode is applied to Gantt Chart. The dependency lines are enabled in this example to represent the execution order or the hierarchy between the phases. The critical path is a series of tasks (or sometimes only a single task) that controls the calculated finish date of the project. If a task in a critical path is delayed, then the entire project will be delayed. Injecting Module: Gantt component features are segregated into individual feature-wise modules. To use critical path, edit, selection, toolbar features, inject the CriticalPath, Edit, Selection and Toolbar modules using the Gantt.Inject(CriticalPath), Gantt.Inject(Edit), Gantt.Inject(Selection) and Gantt.Inject(Toolbar) methods. More information on the Essential® JS2 Gantt Chart can be found in this documentation section.