Gantt
A Gantt chart lays a plan out over time: tasks with dates or dependencies, sections, milestones and a line for today.
gantt plan "Q1 plan" [today: 2025-01-20] {
--- Design ---
research "User research": 2025-01-06, 5d
wireframes [blue, done]: after research, 4d
review [milestone]: after wireframes
--- Build ---
api "Build API" [green, active]: 2025-01-15, 2w
ui [crit]: after wireframes api, 10d
launch [milestone]: 2025-02-14
}A task is id "Label" [props]: start, length, or with the props at the end, id "Label": start, length [props]. The start is a date (2025-01-06, 2025-01-06 14:00) or after a b, the latest end of those tasks. Leave it out and the task starts where the one above ends. The length is 3h, 5d, 2w or an end date. Dependency arrows are drawn for you, and a cycle or an unknown task gets a warning instead of a wrong chart.
| task prop | result |
|---|---|
a colour, like [green] | bar colour |
done | muted bar and a ✓ |
active | the open work is striped |
crit | red outline |
milestone | a diamond, no length |
progress: 60% | fills that share of the bar |
owner: ana | a note after the bar |
--- Section --- (or section Name) starts a group of rows, with a summary bar over its tasks. --- Build [teal] --- colours the section and every task in it that has no colour of its own.
| header prop | values |
|---|---|
today | a date or now: a marker line with a tag |
scale | day, week or month (default: fits the range) |
bars | soft (default), solid, outline or thin |
labels | left (a label column, default) or bar (names on the bars) |
notes | length (default), dates or none: what a bar says |
density | compact, normal or loose row height |
arrows | elbow (default), curved or hide |
rows | striped (default) or plain |
grid | show (default) or none: the tick lines |
summary | show (default) or hide: the section bars |
weekends | show shades Saturdays and Sundays |
Elbow arrows run along the gap between rows, so they never cross a label. A label that does not fit on its bar goes after it.
gantt release "Release 2.0" [today: 2025-01-20, bars: solid, labels: bar, notes: dates, density: compact] {
--- Design [violet] ---
research "User research" [progress: 100%]: 2025-01-06, 5d
wireframes [done]: after research, 4d
--- Build [teal] ---
api "Build API" [active, progress: 60%, owner: ana]: 2025-01-15, 2w
ui "UI" [crit]: after wireframes api, 10d
launch [milestone]: after ui
}Examples
A sprint by day
gantt sprint "Sprint 12" [scale: day, weekends: show, today: 2025-03-12] {
--- Backend [blue] ---
schema "Schema": 2025-03-10, 2d
api "Endpoints": after schema, 3d
--- Frontend [pink] ---
ui "Screens": 2025-03-11, 4d
e2e "E2E tests" [crit]: after api ui, 2d
demo [milestone]: after e2e
}A quarter by month
theme: midnight
gantt q2 "Q2" [scale: month, bars: outline, arrows: curved] {
research "Research" [done]: 2025-04-01, 3w
design "Design": after research, 4w
build "Build" [active, progress: 30%]: after design, 6w
launch [milestone]: after build
}