The days property specifies the number of days displayed in the Gantt chart grid on the horizontal axis.
If not specified, the value is calculated automatically to include all tasks in the grid.
DayPilot.Gantt.daysnumber - fixed number of visible days.
null - automatic range based on the loaded tasks.
nullJavaScript
const gantt = new DayPilot.Gantt("dp", {
days: 30,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
days: 30,
// ...
};React
<DayPilotGantt
days={30}
{/* ... */}
/>Vue
<DayPilotGantt
:days="30"
<!-- ... -->
/>