How to set Holiday in gantt chart

I want to pass array of holidays

Hello Nitish,
To specify the work time settings, you need to use the setWorkTime method:

If you have an array of dates in the String format, you need to convert each date to the Date object and give it to the setWorkTime method.
Here is an example of how it might be implemented: