DayPilot.Gantt.days

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.days

Possible Values

  • number - fixed number of visible days.

  • null - automatic range based on the loaded tasks.

Default Value

null

Examples

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

DayPilot.Gantt.startDate

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript