Array that specifies a custom Gantt timeline.
DayPilot.Gantt.timeline (array)
Item properties:
gantt.timeline = [ { start: "2014-01-01T00:00:00", end: "2014-01-02T00:00:00" }, { start: "2014-01-02T00:00:00", end: "2014-01-03T00:00:00" } ];
gantt.timeline = []; for (var i = 0; i < 31; i++) { var day = {}; day.start = gantt.startDate.addDays(i); day.end = day.start.addDays(1); gantt.timeline.push(day); } for (var i = 0; i < 3; i++) { var month = {}; month.start = gantt.startDate.addDays(31).addMonths(i); month.end = month.start.addMonths(1); month.width = 100; gantt.timeline.push(month); }