跳到主要内容

step

Description

定义时间刻度(X轴)的增量

Example

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

gantt.init("gantt_here");

Default value: 1

Details

注释

step 属性已被弃用。请改为在 scales 中配置 step:

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

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.