Skip to main content
The two primary data props on the <Gantt> component are tasks and links. tasks defines the work items rendered as bars in the chart, while links defines dependency arrows between those bars.

ITask fields

number | string
Unique identifier for the task. When omitted, an id is generated automatically. All parent references and link source/target values must match task ids.
string
Label displayed inside the task bar and in the grid’s task-name column.
Date
Start date/time of the task. Required for regular tasks and milestones. Summary tasks derive their start from child tasks when omitted.
Date
End date/time of the task. You can supply either end or duration — not both. Milestones use start only; end is ignored.
number
Duration expressed in the current durationUnit (default: days). Used as an alternative to end. When both are provided, end takes precedence.
number
Completion percentage from 0 to 100. Renders a progress fill inside the bar.
'task' | 'summary' | 'milestone' | string
default:"task"
Visual type of the task. Built-in values are "task", "summary", and "milestone". Custom types can be added via the taskTypes prop.
number | string
default:"0"
ID of the parent task. Use 0 (or omit) for root-level tasks. Nesting tasks under a summary parent creates a collapsible hierarchy.
boolean
default:"false"
When true, the task’s children are expanded on initial render. Only meaningful for summary-type tasks that have children.
string
Optional description shown in the task editor panel.
boolean
default:"false"
When true, the task has no fixed dates. It appears in the grid but not on the chart timeline. Requires unscheduledTasks={true} on the <Gantt> component.
boolean
default:"false"
When true, the task bar is rolled up and displayed inside its parent summary bar. Requires the rollups prop on the <Gantt> component.
Partial<ITask>[]
Splits the task into multiple non-contiguous segments. Each segment can override start, duration, and text. Requires splitTasks={true} on the <Gantt> component.
Date
Baseline start date used for comparison against the actual start. Shown as a separate indicator when baselines={true} is set on the <Gantt> component.
Date
Baseline end date, paired with base_start. Shown when baselines={true}.

Hierarchical tasks

Tasks form a tree by setting the parent field to another task’s id. Any task that has children should use type: "summary". Set open: true to expand children on load.
Summary tasks automatically derive their date range from their children unless explicit start/end values are provided.
number | string
Unique identifier for the link. Generated automatically when omitted.
number | string
required
ID of the task where the dependency arrow originates.
number | string
required
ID of the task where the dependency arrow points.
'e2s' | 's2s' | 's2e' | 'e2e'
required
Dependency type. Controls which ends of the source and target bars the arrow connects.
number
Delay (in days) between the source event and the target event. A positive value adds a gap; a negative value creates overlap (lead time).