cheatsheet / current
Sankey Diagram
Use Mermaid sankey-beta to show quantities flowing from one category to another.
Sankey Diagram
Use Mermaid sankey-beta to show quantities flowing from one category to another.
Basic template
sankey-beta
A, B, 10
A, C, 5
Core syntax
- Start with
sankey-beta - Add flows as
Source, Target, Value - Repeat sources and targets across multiple rows to build the network
Common example
sankey-beta
Leads, Qualified, 120
Leads, Lost Early, 80
Qualified, Proposal, 70
Qualified, Closed Lost, 50
Proposal, Won, 25
Proposal, Lost Late, 45
Good for
- Funnels
- Cost allocation
- Data movement summaries
Watch for
- Sankey diagrams communicate relative magnitude best when values differ meaningfully
- If you only need sequence without quantities, use a flowchart instead