Diagram Examples
Invalid Diagramsâ
Those errors should not crash the whole page
Invalid typeâ
Invalid contentâ
Sequence Diagramâ
Sequence Diagram (forest theme directive)â
It is possible to override default config locally with Mermaid text directives such as:
%%{init: { "theme": "forest" } }%%
Gantt Chartâ
Flow Chartâ
With Markdown:â
Class Diagramâ
State Diagramâ
Entity Relationship Diagramâ
User Journeyâ
note
If there's too much space above it's due to a Mermaid bug
Pie Chartâ
Requirement Diagramâ
Gitgraph (Git) Diagramâ
Mermaid in tabsâ
- tab-a
- tab-b
The following mermaid diagram is shown:
This mermaid diagram is not displayed:
Mindmapâ
Quadrant Chartâ
Architecture Diagramâ
- See https://mermaid.js.org/syntax/architecture
- See https://github.com/facebook/docusaurus/discussions/10508
ELK Stylingâ
Mermaid provides an ELK layout
Dagreâ
This is a "classical" Mermaid diagram, using the default Dagre layout.
ELK er diagram layoutâ
This ER diagram should look different, using the ELK layout.
Mermaid also provides a way of setting config parameters using a directive %%{init:{"layout":"elk"}}%%