DayPilot.Gantt.scale

Determines the grid cell size (duration).

Declaration

DayPilot.Gantt.scale (string)

Possible Values

  • "CellDuration"
  • "Manual"
  • "Minute"
  • "Hour"
  • "Day"
  • "Week"
  • "Month"
  • "Year"

The time unit values ("Minute", "Hour", "Day", "Week", "Month", "Year") apply the respective time unit.

"CellDuration" applies the number of minutes specified in cellDuration property as a time unit.

If you set scale to "Manual" it will not generate the timeline automatically but the timeline specified using timeline property will be used.

Default Value

"Day"

Example

gantt.scale = "Hour";