Hi, I am trying to set work_time for my gantt chart and the documentation seems pretty straightforward. However, even when I set it to true it still shows the full day (00-23hrs). Here’s my code:
/* globals gantt */
gantt.config.duration_unit = “hour”;
gantt.config.work_time = true;
gantt.config.subscales = [{ unit: “hour”, step: 1, date: “%H” }];
gantt.init(this.container.current);
gantt.clearAll();
gantt.parse(tasks);
Here’s my gantt:
What am I doing wrong? any help would be greatly appreciated! thanks