Data
- Last UpdatedOct 10, 2025
- 1 minute read
The Gantt Chart widget uses the data property for globalSetting and datasets main elements.
Example
control.findByXmlNode("Widget1").widgetProperties.data = JSON.stringify(
{
globalSetting: {},
datasets: [],
});
The globalSetting is part of a data property and consists of different elements, which affect the interface of the Gantt Chart. You can set these elements individually or collectively. They are cached until their next update. If the value for the elements isn't set in a script, the widget uses the default value. For detailed information on the globalSetting elements, see the globalSetting elements table.
The data property is also used to start a new session. With this property, you can reset the widget data, including its interface. If a timer exists or there's a current segment selection, using this property stops the timer or deselects selected segment.