Browse documentation
Docs/Markdown Toolkit/Diagram gallery

Diagram gallery

Every Mermaid diagram type the macro renders, with the source behind each one.

Twenty-one diagram types, each rendered here by the same library the macro runs in Confluence. Every panel has a Show source button: what you read there is exactly what goes inside a fenced mermaid block on the page.

Note
Every example on this page is lifted from a real Confluence space that documents the app itself, which is why they are about export jobs and Forge runtimes rather than about cats. Each one is short on purpose: a ten-line diagram is read, a hundred-line one is scrolled past.

Flow and structure

flowchart

The one you will use most. Nodes, edges, subgraphs, and classDef for colour the author controls.

```mermaid · flowchartExample

sequenceDiagram

Participants over time, with alt, loop and autonumber.

```mermaid · sequenceDiagramExample

stateDiagram-v2

States, transitions and choice pseudo-states.

```mermaid · stateDiagram-v2Example

classDiagram

Classes, generics, stereotypes and relationships.

```mermaid · classDiagramExample

erDiagram

Entities, cardinality and attributes with comments.

```mermaid · erDiagramExample

C4Context

The C4 model's first level: people, systems, and the boundary around them.

```mermaid · C4ContextExample

block-beta

A grid of blocks, for a layered picture that a flowchart would arrange badly.

```mermaid · block-betaExample

architecture-beta

Services and groups, with edges that attach to a named side of each box.

```mermaid · architecture-betaExample

mindmap

Indentation is the whole syntax. Good for a feature map nobody wants to lay out by hand.

```mermaid · mindmapExample

requirementDiagram

Requirements, their risk and verification method, and what satisfies them.

```mermaid · requirementDiagramExample

packet-beta

Bit ranges in a binary layout. Niche, and exactly right when you need it.

```mermaid · packet-betaExample

Plans and time

gantt

Dates, dependencies (after), and task states. Wide by nature — this is the type the Width setting exists for.

```mermaid · ganttExample

timeline

Periods and the events inside them. No dates to get wrong.

```mermaid · timelineExample

journey

Steps scored 1–5 by who lives them. The low scores are the point.

```mermaid · journeyExample

kanban

Columns, cards, and per-card metadata such as priority and assignee.

```mermaid · kanbanExample

Numbers

pie

One line per slice. showData prints the values.

```mermaid · pieExample

xychart-beta

Bars and lines on the same axes.

```mermaid · xychart-betaExample

sankey-beta

Flows and where they go. Three comma-separated columns: from, to, value.

```mermaid · sankey-betaExample

radar-beta

Several things scored on the same axes, overlaid.

```mermaid · radar-betaExample

treemap-beta

Nested proportions. Here, lines of code per module.

```mermaid · treemap-betaExample

quadrantChart

Two axes, four named quadrants, points placed by coordinate.

```mermaid · quadrantChartExample
If a diagram does not appear
Check the fence says exactly mermaid, then switch the macro to Preview — Mermaid reports its own syntax errors there, with the line number. A diagram type Mermaid does not know reports itself the same way.

Something missing or wrong on this page? Tell us in the support portal or email contact@synapseoasis.com.