Gantt charts from an AI reply: project schedules and thesis timelines
About 4 min · Updated 2026-09-06
The prompt for gantt code, date formats and sections, dependencies with after, milestones and status tags, axis labels, and turning off the today marker so exports stay stable.
The prompt
Draw a Gantt chart in Mermaid for the project: master's thesis, from the proposal on 2026-09-15 to the defence on 2027-05-20. Requirements: reply with one complete mermaid code block only, the first line must be gantt, include dateFormat YYYY-MM-DD, group tasks with section.
Give it the key dates and phases and the reply follows your calendar; otherwise it invents dates you will have to edit.
A typical result
gantt
title Thesis schedule
dateFormat YYYY-MM-DD
axisFormat %b %d
todayMarker off
section Proposal
Literature review :done, a1, 2026-09-15, 20d
Proposal document :done, a2, after a1, 10d
Proposal defence :milestone, m1, 2026-10-20, 0d
section Research
Data collection :active, b1, 2026-10-21, 30d
Modelling and experiments :b2, after b1, 45d
Analysis :b3, after b2, 20d
section Writing
First draft :c1, after b3, 30d
Revision and checks :crit, c2, after c1, 20d
Defence :milestone, m2, 2027-05-20, 0dSyntax at a glance
- Dates:
dateFormat YYYY-MM-DDsets the input format;axisFormat %b %dsets how the axis labels are shown (month and day). - Sections:
section Name; the tasks below belong to it and are drawn as a band. - Task lines:
Task name :tags, id, start, duration or end. Durations are20d(days) or2w(weeks); an end date works too. - Dependencies:
after a1starts right after a1 ends;after a1 a2waits for the later of the two. - Status tags:
done,active,crit(critical path, red outline),milestone(a diamond, duration0d). Tags come first after the colon. - Today marker:
todayMarker offhides the vertical “today” line. For a thesis plan or anything you send to others, turn it off, or the chart looks different every day.
Editing
Gantt charts are edited in the code: dates, durations and names are all on their own lines. To shift a whole phase, change the start date of its first task; tasks chained with after move along.
There is no double-click editing and no direction control; the width follows the total span, so switch to ×3 before exporting a long timeline.
On the canvas
A Gantt chart moves onto the free canvas as a single picture: you can position and annotate it, not pull the bars apart. Change the data in the code; charts like this were never meant to be dragged.
Export
Schedules usually end up in slides: “Export PowerPoint (pptx)” embeds a 3x image that fills a landscape slide. For the team, “Export PDF” or “Copy PNG to clipboard”. The template library has project schedule, product launch, event planning and thesis schedule Gantt charts.
Related
More guides
- Flowcharts from an AI reply, exported to Word
- Mind maps from an AI reply: mindmap syntax, indentation and export
- Sequence diagrams from an AI reply: API calls and system interactions
- Research roadmaps for a thesis or proposal, from template or AI, to black-and-white print
All guidesLooking for a specific answer? Try the Help Center