Mermaid treemap online editor
Show hierarchical values as nested areas for quick comparison. Create the diagram in Mermaid Studio, preview it instantly, and export it when it is ready to share.
WHAT IT IS FOR
Make the important relationships clear
Show hierarchical values as nested areas so readers can compare the relative size of categories at a glance.
- Visualize portfolio composition
- Show nested budgets or investments
- Explain hierarchical data
MERMAID EXAMPLE
Start with a working example
Copy the structure, replace the labels with your own domain, and continue in the full editor.
treemap-beta
"Features"
"Editor": 40
"Sharing": 25
"AI": 35HOW TO START
Create your diagram in four steps
- 1Choose the hierarchy and the value represented by area.
- 2Keep category names short.
- 3Group children under the correct parent.
- 4Explain the measure and time period beside the diagram.
WRITING TIPS
Keep the diagram useful
Use area for one meaningful measure.
Keep labels short enough to scan.
FAQ
Frequently asked questions
What does a treemap diagram show?+
A treemap shows hierarchical categories as nested areas, where size represents a meaningful value.
When should I avoid a treemap?+
Avoid one when exact values or many similarly sized categories matter more than the hierarchy and overall composition.
TEMPLATES
Start from a related template
RELATED DIAGRAMS
Explore another Mermaid diagram
Mermaid flowchart
Visualize processes, decisions, and system flows with connected nodes.
Read the guideMermaid sequence diagram
Map requests, responses, and asynchronous events between services.
Read the guideMermaid class diagram
Design domain objects, properties, methods, inheritance, and relationships.
Read the guideMermaid ER diagram
Document database entities, fields, relationships, and cardinality.
Read the guideMermaid state diagram
Show how an object or workflow changes state in response to events.
Read the guideMermaid mindmap
Organize ideas and subtopics hierarchically around a central theme.
Read the guideReady to make a Treemap?
Open the editor with a working example and adapt it to your project.
Start in Mermaid Studio