An interactive Gantt chart with a resizable task tree on the left and a scrollable timeline on the right. Supports nested tasks, drag-to-move, drag-to-resize, dependency arrows, zoom levels, and undo/redo.
Use onchange to retain the updated task tree in parent state. Drag task bars to move them, drag their edges to resize. Click + on a task to add a child.
Use the toolbar to zoom, navigate to today, undo/redo, or export/import JSON.
Dependency arrows are drawn automatically between tasks listed in dependencies.
Pass viewOnly to disable all editing interactions. Useful for read-only dashboards or embedded previews.
GanttTypes.GanttTask fields: id, label, startDate / endDate (YYYY-MM-DD),
optional progress (0–100), color (CSS color string), children (nested tasks), and dependencies (array of task ids).