跳到主要内容

scale_unit

警告

該屬性已棄用。

Description

设置时间刻度的单位(X 轴)

Example

gantt.config.scale_unit = "month";
gantt.config.date_scale = "%F, %Y";

gantt.init("gantt_here");

默认值: 'day'

Details

可以设置自定义单位。有关该主题的更多信息,请参阅此处 此处

注释

该属性已被弃用。 请改用 scalesunit 属性:

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.