Skip to content

Gantt ​

A Gantt chart lays a plan out over time: tasks with dates or dependencies, sections, milestones and a line for today.

yuhwa diagramyuhwa diagramEdit
yuhwa
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 propresult
a colour, like [green]bar colour
donemuted bar and a ✓
activethe open work is striped
critred outline
milestonea diamond, no length
progress: 60%fills that share of the bar
owner: anaa 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 propvalues
todaya date or now: a marker line with a tag
scaleday, week or month (default: fits the range)
barssoft (default), solid, outline or thin
labelsleft (a label column, default) or bar (names on the bars)
noteslength (default), dates or none: what a bar says
densitycompact, normal or loose row height
arrowselbow (default), curved or hide
rowsstriped (default) or plain
gridshow (default) or none: the tick lines
summaryshow (default) or hide: the section bars
weekendsshow 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.

yuhwa diagramyuhwa diagramEdit
yuhwa
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 ​

yuhwa diagramyuhwa diagramEdit
yuhwa
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 ​

yuhwa diagramEdit
yuhwa
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
}

Released under the MIT License.