[]
The Data Manager is a powerful local data engine that sends requests to the server side, then binds the data to the GanttSheet when the data is ready. GanttSheet supports using a DataManager view as a data source.
A data source schema refers to the structure of data within a particular data source.
GanttSheet requires the following fields from the data source as task fields.
Task Field | Data Type | Description |
---|---|---|
Require Fields | ||
taskNumber | number | The task number. It represents the unique number of each task. Note: If not present, only the root task will be displayed in GanttSheet. |
name | string | The task name. |
duration | String/number/object | The task duration. It contains value, unit, or time. |
predecessors | string | The task dependency string. |
mode | string | The schedule mode. It supports two types of modes: ‘Auto’ and ‘Manual’. The default type is ‘Auto’. |
Optional Fields | ||
start | date | The date when the task is started. If the task schedule mode is ‘Auto’, this field is a calc field. |
finish | date | The date when the task ended. If the task schedule mode is ‘Auto’, this field is a calc field. |
complete | number | The task completion percentage. The percentage is calculated between 0 to 1. |
Here is a sample data source.
[
{
"id": 1,
"taskNumber": 1,
"parentId": null,
"name": "Plan for Project Server 2013 deployment",
"duration": "1 day",
"start": "21/12/23 8:00",
"finish": "21/12/23 17:00",
"predecessors": ""
},
{
"id": 2,
"taskNumber": 2,
"parentId": null,
"name": "Prepare for deployment",
"duration": "4 days",
"start": "21/12/24 8:00",
"finish": "21/12/29 17:00",
"predecessors": "1"
},
]