← All glossary entries

Gantt chart

Last updated: 2026-05-01

A Gantt chart lays out tasks against a calendar. Each task is a horizontal bar whose left edge is the start date and whose width is the duration. Dependencies (after a1) anchor a task’s start to the end of another. Milestones are zero-duration markers, drawn as diamonds, that flag fixed dates without filling time.

Gantt charts are the right tool when timing matters — product launches, conference timelines, multi-team plans where a delay in one section pushes others. They are the wrong tool when:

In Mermaid, gantt charts begin with the keyword gantt and require a dateFormat declaration (YYYY-MM-DD is the safe default). Sections group related tasks visually. Modifiers crit, done, active, and milestone change the bar’s style.

A common mistake is to use the wrong dateFormat and end up with charts that interpret 01-02-2026 differently in different locales. Always set dateFormat YYYY-MM-DD explicitly. See the gantt diagram guide for the full syntax.


Related


Open the live preview · Diagram types · Guides