Example of Holidays in Javascript Gantt Chart Control

/
/
Holidays

This sample visualizes how to define the holidays in between the project timeline.

More Details...

Description

In this example, holidays are displayed with vertical bar with the desired text using the label property. You can also mention the continuous holidays by specifying the from and to range. For single holiday, you can define from value alone. Holidays are defined as an array of object collection, so that we can display more than one holiday in the project. You can even assign the cssClass to each holiday to change the default color of label and background. Injecting Module: Gantt control features are segregated into individual feature-wise modules. To use a selection, inject the Selection module using the Gantt.Inject(Selection) method. To use markers, inject the DayMarkers module using the Gantt.Inject(DayMarkers) method.