Gantt chart
Plan a project in a Gantt chart (timeline): a calendar that adapts to the span, activity bars, milestones, events and the time elapsed so far.
- React
import { GanttChart } from 'boardplot/react/gantt';- Reference
- Data, options and sizing
- Use for
- Project plan with milestones · Rollout by workstream · Campaign calendar
- Not for
- Steps without dates; gantt places spans and events on a calendar.
Transformation program with status
Gantt chart of a FY26 transformation program with owner and status columns, bars colored by status, a today line on 3 Jul and steering milestones SC1 and SC2.
transformation-program
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "gantt",
"data": {
"rows": [
{
"id": "diag",
"label": "Diagnostic",
"cols": [
"Operations",
{
"text": "Done",
"tone": "good"
}
],
"items": [
{
"id": "diag-base",
"kind": "bar",
"start": "2026-01-05",
"end": "2026-03-13",
"label": "Baseline"
},
{
"id": "sc1",
"kind": "milestone",
"start": "2026-02-23",
"label": "SC1",
"scope": "shared"
}
]
},
{
"id": "diag-int",
"label": "Interviews",
"indent": 1,
"items": [
{
"id": "interviews",
"kind": "bar",
"start": "2026-01-19",
"end": "2026-02-27"
}
]
},
{
"id": "design",
"label": "Concept design",
"cols": [
"Design",
{
"text": "In progress",
"tone": "neutral"
}
],
"items": [
{
"id": "design-bar",
"kind": "bar",
"start": "2026-03-02",
"end": "2026-06-26"
},
{
"id": "sc2",
"kind": "milestone",
"start": "2026-06-29",
"label": "SC2",
"scope": "shared"
}
]
},
{
"id": "pilots",
"label": "Pilots",
"indent": 1,
"cols": [
"Delivery",
{
"text": "At risk",
"tone": "warn"
}
],
"items": [
{
"id": "wave1",
"kind": "bar",
"start": "2026-05-04",
"end": "2026-08-28",
"label": "Wave 1"
},
{
"id": "wave2",
"kind": "chevron",
"start": "2026-09-01",
"end": "2026-10-30",
"label": "Wave 2"
}
]
},
{
"id": "rollout",
"label": "Rollout",
"cols": [
"Team",
{
"text": "Delayed",
"tone": "bad"
}
],
"items": [
{
"id": "rollout-chev",
"kind": "chevron",
"start": "2026-09-07",
"end": "2026-12-18"
}
]
},
{
"id": "gov",
"label": "Governance",
"items": [
{
"id": "gov-shade",
"kind": "shade",
"start": "2026-01-05",
"end": "2026-06-26"
},
{
"id": "gov-h1",
"kind": "bracket",
"start": "2026-01-05",
"end": "2026-06-26",
"label": "Board cadence H1"
},
{
"id": "end",
"kind": "milestone",
"start": "2026-12-21",
"label": "Project end"
}
]
}
]
},
"options": {
"title": "Rollout decision moves to September after pilot read-out",
"subtitle": {
"company": "Acme Corp",
"measure": "Transformation program",
"period": "FY26"
},
"source": "PMO plan of record, June 2026",
"today": "2026-07-03",
"rowTint": true,
"colHeaders": [
"Owner",
"Status"
],
"size": {
"width": 1000
}
}
}Product launch plan with go-live
Gantt chart with four launch phases, from scope definition in April to support after launch in late June. A line marks 6 May as today, a milestone marks the launch on 15 June, and columns show weeks.
product-launch
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "gantt",
"data": {
"rows": [
{
"id": "prep",
"label": "Preparation",
"cols": [
"PM"
],
"items": [
{
"id": "prep-scope",
"kind": "bar",
"start": "2026-04-06",
"end": "2026-04-17",
"label": "Scoping"
}
]
},
{
"id": "build",
"label": "Build",
"cols": [
"Eng"
],
"items": [
{
"id": "build-dev",
"kind": "bar",
"start": "2026-04-20",
"end": "2026-05-22",
"label": "Build",
"anchor": {
"toItemId": "prep-scope",
"edge": "end",
"offsetDays": 2
}
}
]
},
{
"id": "test",
"label": "Test & QA",
"cols": [
"QA"
],
"items": [
{
"id": "test-qa",
"kind": "bar",
"start": "2026-05-25",
"end": "2026-06-12",
"label": "QA cycles",
"anchor": {
"toItemId": "build-dev",
"edge": "end",
"offsetDays": 2
}
}
]
},
{
"id": "launch",
"label": "Launch",
"cols": [
"GTM"
],
"items": [
{
"id": "launch-go",
"kind": "milestone",
"start": "2026-06-15",
"label": "Go live",
"anchor": {
"toItemId": "test-qa",
"edge": "end",
"offsetDays": 2
}
},
{
"id": "hypercare",
"kind": "chevron",
"start": "2026-06-17",
"end": "2026-07-03",
"label": "Hypercare",
"colorRole": "neutralLight",
"colorLabel": "After go-live",
"anchor": {
"toItemId": "launch-go",
"edge": "end",
"offsetDays": 1
}
}
]
}
]
},
"options": {
"title": "Go-live lands mid-June with two weeks of hypercare",
"subtitle": {
"measure": "Launch plan",
"period": "Q2 2026"
},
"colHeaders": [
"Owner"
],
"source": "Illustrative launch plan; each phase is anchored to the one before it",
"today": "2026-05-06",
"weekends": true,
"rowTint": true,
"theme": {
"preset": "boardroom",
"overrides": {
"surface": {
"ganttRowTint": 0.25
}
}
},
"size": {
"width": 1000
}
}
}Delivery plan with owner and due date
Gantt chart with three delivery rows (confirm scope, run pilot, launch), each with an owner and due date column, running from August to September.
metadata-column-headers
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "gantt",
"data": {
"rows": [
{
"id": "scope",
"label": "Confirm scope",
"cols": [
"Product",
"14 Aug"
],
"items": [
{
"id": "scope-work",
"kind": "bar",
"start": "2026-08-03",
"end": "2026-08-14",
"colorRole": "highlight"
}
]
},
{
"id": "pilot",
"label": "Run pilot",
"cols": [
"Operations",
"28 Aug"
],
"items": [
{
"id": "pilot-work",
"kind": "bar",
"start": "2026-08-17",
"end": "2026-08-28",
"colorRole": "highlight"
}
]
},
{
"id": "launch",
"label": "Launch",
"cols": [
"Delivery",
"11 Sep"
],
"items": [
{
"id": "launch-work",
"kind": "bar",
"start": "2026-08-31",
"end": "2026-09-11",
"colorRole": "highlight"
}
]
}
]
},
"options": {
"title": "Delivery work moves from scope through pilot to launch",
"colHeaders": [
"Owner",
"Due date"
],
"rowTint": true,
"source": "Illustrative delivery plan",
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as gantt.json and run the command.
{
"type": "gantt",
"data": {
"rows": [
{
"id": "design",
"label": "Design",
"items": [{ "id": "design-bar", "kind": "bar", "start": "2026-04-01", "end": "2026-04-10" }]
},
{
"id": "launch",
"label": "Launch",
"items": [{ "id": "launch-date", "kind": "milestone", "start": "2026-04-15" }]
}
]
},
"options": { "title": "Design ends five days before launch", "source": "Illustrative data" }
}npx boardplot render gantt.json --out gantt.svg