The update() method refreshes the Gantt chart control after you change its properties.
DayPilot.Gantt.update([options])options (object, optional) - object with properties and event handlers to be updated
It refreshes the component, including time headers, background cells, tasks, and links.
const gantt = new DayPilot.Gantt("dp", {
// ...
});
gantt.init();
// display the next month
gantt.update({
startDate: gantt.startDate.addMonths(1)
});