Перейти к основному содержимому

scale_unit

предупреждение

Свойство устарело.

Description

Устанавливает единицу шкалы времени (ось X)

Example

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

gantt.init("gantt_here");

Default value: 'day'

Details

Есть возможность задать пользовательскую единицу. Подробнее по теме здесь.

заметка

Своёство устарело. Используйте свойство unit из scales вместо этого:

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.