merIDK / Diagram types
Every Mermaid diagram type, with examples
Mermaid turns plain text into diagrams. Pick a type to see example code, the rendered result and a short syntax reference, then open it in the free editor to make it your own.
- FlowchartFlowcharts are the most used Mermaid diagram.
- Flowchart icons & animationMermaid 11 added a long list of named shapes, icon nodes and animated edges.
- ELK layoutFor large graphs, the ELK layout engine usually gives cleaner results than the default Dagre engine: fewer edge crossings and straighter lines.
- Hand-drawn diagramThe hand-drawn look renders any flowchart, state or class diagram as a sketch, similar to a whiteboard drawing.
- Custom themeThe base theme is the only Mermaid theme you can fully recolour.
- Sequence diagramSequence diagrams show how participants such as users, services and databases exchange messages over time.
- Class diagramClass diagrams describe the structure of object-oriented code: classes, their fields and methods, and how classes relate through inheritance, composition and association..
- State diagramState diagrams model something that moves between states, such as an order, a UI component or a network connection, and the events that cause each change..
- ER diagramEntity relationship diagrams describe a database schema: tables, their columns and keys, and how tables relate.
- Gantt chartGantt charts show a project schedule as bars on a timeline, with sections, dependencies and milestones.
- Pie chartPie charts show how a whole splits into parts.
- User journey mapUser journey maps score each step of a task from a user's point of view, so you can see where the experience is good and where it hurts.
- Git graphGit graphs draw commits, branches and merges.
- Mind mapMind maps branch ideas out from one central topic.
- TimelineTimelines list events in date order.
- Quadrant chartQuadrant charts place items on two axes, such as effort against impact.
- Requirement diagramRequirement diagrams follow SysML.
- C4 diagramThe C4 model describes software architecture at four zoom levels: context, container, component and code.
- Sankey diagramSankey diagrams show flows between stages, with each band as wide as the amount it carries.
- Bar and line chartThe XY chart draws bar charts, line charts or both on one set of axes, straight from text.
- Block diagramBlock diagrams give you direct control over where each box goes.
- Packet diagramPacket diagrams lay out the bit fields of a network packet or binary format.
- Kanban boardThe Kanban diagram draws a board with columns and task cards from plain text.
- Architecture diagramArchitecture diagrams show cloud and infrastructure layouts: services, groups and the connections between them, drawn with icons.
- Radar chartRadar (spider) charts compare several items across the same set of measures.
- TreemapTreemaps show hierarchical data as nested rectangles, each sized by its value.
- Venn diagramVenn diagrams show how sets overlap.
- Fishbone (Ishikawa) diagramFishbone diagrams, also called Ishikawa or cause-and-effect diagrams, list the possible causes of a problem by category.
- Wardley mapWardley maps place the parts of a business by how visible they are to the user and how mature they are, from genesis to commodity.
- Cynefin framework diagramThe Cynefin framework sorts problems into five domains: clear, complicated, complex, chaotic and confusion.
- Swimlane diagramSwimlane diagrams split a process into lanes, one per team or role, so you can see who does each step and where work changes hands..
- File tree diagramTree view draws a folder structure from the same text the tree command prints.
- Railroad (syntax) diagramRailroad diagrams draw a grammar as tracks you can follow, the way JSON and SQL are documented.