跳到主要内容

step

警告

该属性已被废弃。

Description

设置时间刻度的步长(X 轴)

Example

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

gantt.init("gantt_here");

Details

注释

step 属性已被废弃。请改用 scalesstep 属性:

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

默认值: 1

Change log

  • 自 v6.2 起已废弃

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.