specifies the second time scale(s) (deprecated)
The property is deprecated.
gantt.config.scale_unit = "month";
gantt.config.subscales = [
{unit:"week", step:1, template:weekScaleTemplate},
{unit:"day", step:1, date:"%D" }
];
gantt.init("gantt_here");
Each object in the array specifies a single scale. An object can take the following attributes:
css | (function) a function that returns a name of a CSS class that will be applied to the scale units. Takes a date object as a parameter |
format | (string) the format of the scale's labels |
step | (string) the scale's step. By default, 1. |
template | (function) the template of the scale's labels. Takes a date object as a parameter |
unit | ("minute", "hour", "day", "week", "month", "year") the scale's unit. By default, "day" |
The subscales property is deprecated. Use the scales config instead.
deprecated since v6.2
Back to top