Gantt chart
Parse gantt title, dateFormat, section and tasks (status/id/start/duration) into section headers and task bars.
Inputs and parameters
input— Mermaid gantt source
Real example
gantt
title Local diagram delivery milestones
dateFormat YYYY-MM-DD
axisFormat %m/%d
section Parse and validate
Type detection :done, d1, 2026-11-01, 3d
Line / column errors :active, d2, after d1, 4d
section Export
SVG plan : d3, 2026-11-08, 2d
Non-blank PNG check : d4, after d3, 3d
→ gantt: 2 sections / 4 tasks; CJK title, done/active statuses, after dependencies and 3d durations are preserved; SVG contains section, task and task-date groups.
Limits and failure handling
excludes/includes/todayMarker are recorded but not drawn; no real calendar, workday or critical-path computation. The fixed examples use readable 2026-11 dates and do not represent a completed test run.
FAQ
Are incomplete tasks rejected?
Yes: MALFORMED_TASK points just after the colon; a missing colon returns MISSING_TASK_SEPARATOR.
Are dates mapped to a real timeline?
No. This run records the raw date/duration text and draws deterministic task bars; it is not real Mermaid timeline layout.