Skip to main content

step

warning

The property is deprecated.

Description

Sets the step of the time scale (X-Axis)

Example

gantt.config.scale_unit = "year";
gantt.config.step = 1;
gantt.config.date_scale = "%Y";

gantt.init("gantt_here");

Details

note

The step property is deprecated. Use the step 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 }
];

Default value: 1

Change log

  • deprecated since v6.2