Choose a kind of diagram
Pick the kind that fits what you want to show.
| To show… | Start with | Recipe |
|---|---|---|
| Steps and decisions | The Flowchart example | Draw a process |
| A project plan on a calendar | The Gantt example | Plan a project timeline |
| Who sends what to whom, in order | The Sequence example | Show who talks to whom |
| A team's structure | Type flowchart TD | Draw an org chart |
| Ideas around one topic | The Mind map example | Map ideas |
| Tables and how they connect | The ERD example | Document tables |
| Statuses, and what moves an item between them | The State example | Show how statuses change |
| Parts of a whole | The Pie example | Show shares of a whole |
| A customer's experience, step by step | The User journey example, under More… | Map a customer journey |
| Events by date or quarter | The Timeline example, under More… | Show a timeline |
| Classes in code | The Class example | Class diagram reference |
More…, beside the example buttons, has an example of 24 other kinds: user journeys, timelines, quadrant charts, Git graphs, C4, requirement, Sankey, XY charts, block, packet, kanban, architecture, radar, treemap, tree view, fishbone, Venn, use case, swimlanes, Wardley maps, Cynefin, railroad, event models and agent flows. The reference lists all 32 kinds with their first lines, and Mermaid's full syntax is at mermaid.js.org.
The Syntax reference panel follows the kind you are writing, for all 32. For a first line it does not know, it shows the flowchart reference.