跳到主要内容

effort

Description​

Configures effort-driven task calculations

effort: EffortConfig

Details​

Set the configuration before initializing the chart.

PropertyDefaultMeaning
enabled: booleanfalseEnable effort calculations.
mode: "fixed_duration" | "fixed_units" | "fixed_work""fixed_duration"Default scheduling mode for tasks that do not specify one.
effort_driven: booleanfalseDefault effort-driven flag for tasks that do not specify one. It affects how the task responds to adding or removing assignments.
work_unit: "minute" | "hour" | "day" | "week" | "month" | "year""hour"Unit for task work.
hours_per_day: number8Assignment value that represents a full working-day allocation. Set it consistently with the work unit and assignment values.

Example​

gantt.config.effort = {
enabled: true,
mode: "fixed_duration",
effort_driven: false,
work_unit: "hour",
hours_per_day: 8
};

Change log​

  • Added in v10.1.
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.