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.
Declaration
DayPilot.Gantt.daysPossible Values
number- fixed number of visible days.null- automatic range based on the loaded tasks.
Default Value
nullExamples
JavaScript
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"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot