Mermaid diagram
Pie Chart — free online editor
Mermaid pie charts visualize a single dataset as proportional slices — the easiest Mermaid diagram to start with.
What is a Mermaid pie chart?
The pie diagram has the simplest syntax in Mermaid: just `pie title …` followed by one line per slice in the form `"Label" : value`. Add `showData` to display numeric values inside the legend.
When to use it
- ▸Show market share or category breakdowns
- ▸Visualize survey results
- ▸Quick stats in slide decks or READMEs
Syntax in one paragraph
Format: `pie title My Title` then `"Slice name" : 42`. Optional `pie showData` at the top puts numeric values in the legend.
Example: Browser market share
pie title Browser Market Share 2024
"Chrome" : 65
"Safari" : 19
"Firefox" : 4
"Edge" : 4
"Other" : 8More Mermaid diagrams
Flowchart
A Mermaid flowchart visualizes a process as connected nodes and arrows — perfect for documenting algorithms, decision trees, and user journeys.
Sequence Diagram
Mermaid sequence diagrams show how participants exchange messages over time — ideal for API flows, auth handshakes, and protocol design.
Class Diagram
Mermaid class diagrams model UML classes — their members, methods, and the relationships between them.
ER Diagram
Mermaid ER diagrams model database schemas — tables, columns, and the relationships between them using crow's-foot cardinality.
State Diagram
Mermaid state diagrams visualize finite-state machines — perfect for UI states, workflow engines, and protocol design.
Gantt Chart
Mermaid Gantt charts plan projects across time — tasks, durations, dependencies, and milestones.
Git Graph
Mermaid Git graphs visualize branching workflows — commits, branches, merges, and tags — in a clean SVG diagram.
Mindmap
Mermaid mindmaps capture ideas around a central topic — branches grow outward by indentation alone, no UI dragging required.
Timeline
Mermaid timelines show events over time grouped into sections — great for histories, roadmaps, and onboarding stories.
Kanban Board
Mermaid 11 added native Kanban boards — list-based, version-controllable, and renderable straight from text.
Full Mermaid editor →
All 11+ diagram templates, live preview, themes
