date_scale

sets the format of the time scale (X-Axis)

string date_scale;

Deprecated

The property is deprecated.

Example

gantt.config.scale_unit = "month";
gantt.config.step = 1;
gantt.config.date_scale = "%F, %Y";
 
gantt.init("gantt_here");


Default value:

"%d %M"

Related samples

Details

The date_scale property is deprecated. Use the format property of the scales instead:

gantt.config.scales = [
    {unit: "month", step: 1, format: "%F, %Y"},
    {unit: "week", step: 1, format: weekScaleTemplate},
    {unit: "day", step: 1, format: "%D", css:daysStyle }
];
See also
Change log

deprecated since v6.2

Back to top