Mermaid Mindmaps
Mindmaps visualize hierarchical information in a radial tree structure. Perfect for brainstorming, organizing ideas, and showing relationships between concepts.
Use Case
Use mindmaps when you need to:
- Brainstorm ideas
- Organize information hierarchically
- Show concept relationships
- Create knowledge maps
- Visualize topic breakdowns
Code
1```mermaid
2mindmap
3 root((Root))
4 Branch A
5 Leaf A1
6 Leaf A2
7 Branch B
8 Leaf B1
9```
Result:
Explanation
mindmap- Start mindmap diagram((text))- Root node (double parentheses)- Indentation creates hierarchy
- Each level is a child of the previous
Examples
Example 1: Project Planning
1```mermaid
2mindmap
3 root((Project Plan))
4 Research
5 Literature Review
6 Market Analysis
7 Competitor Study
8 Design
9 Architecture
10 UI/UX
11 Database
12 Development
13 Backend
14 Frontend
15 Testing
16 Deployment
17 Staging
18 Production
19 Monitoring
20```
Result:
Example 2: Learning Path
1```mermaid
2mindmap
3 root((Machine Learning))
4 Supervised Learning
5 Classification
6 Logistic Regression
7 Decision Trees
8 Neural Networks
9 Regression
10 Linear Regression
11 Polynomial Regression
12 Unsupervised Learning
13 Clustering
14 K-Means
15 Hierarchical
16 Dimensionality Reduction
17 PCA
18 t-SNE
19 Reinforcement Learning
20 Q-Learning
21 Policy Gradients
22```
Result:
Notes
- Root node uses double parentheses:
((Root)) - Indentation determines hierarchy (2 spaces per level)
- Keep node names concise
- Can nest multiple levels deep
Gotchas/Warnings
- ⚠️ Indentation: Must be consistent (spaces, not tabs)
- ⚠️ Root Node: Must use double parentheses
- ⚠️ Depth: Very deep hierarchies can be hard to read
- ⚠️ Node Names: Keep short for better visualization
Related Snippets
- Architecture Diagrams (C4 Model)
Create system architecture diagrams using C4 model with Mermaid - Chart.js Bar Chart
Create bar charts for data visualization - Graphviz DOT Diagrams
Create complex graph layouts with Graphviz DOT language - KaTeX Math Examples and Tips
Comprehensive guide to KaTeX math notation with examples and tips - Mermaid Arbitrary Graphs
Create arbitrary graphs and networks with Mermaid - Mermaid Block Diagrams
Create block diagrams for system architecture with Mermaid - Mermaid Charts (Pie, Bar, Line)
Create pie charts, bar charts, and line charts with Mermaid - Mermaid Class Diagrams (UML)
Create UML class diagrams with Mermaid - Mermaid Entity Relationship Diagrams
Create Entity Relationship Diagrams (ERD) with Mermaid - Mermaid Flowchart
Create flowcharts and decision trees with Mermaid - Mermaid Gantt Chart
Create Gantt charts for project timelines and scheduling - Mermaid Git Diagrams
Create Git branch and commit diagrams with Mermaid - Mermaid Kanban Boards
Create Kanban boards for project management with Mermaid - Mermaid Packet Diagrams
Create packet diagrams for network protocols with Mermaid - Mermaid Quadrant Charts
Create quadrant charts for prioritization with Mermaid - Mermaid Radar Charts
Create radar charts for multi-dimensional comparisons with Mermaid - Mermaid Requirement Diagrams
Create requirement diagrams for system requirements with Mermaid - Mermaid Sankey Diagrams
Create Sankey diagrams for flow visualization with Mermaid - Mermaid Sequence Diagram
Create sequence diagrams for interactions and API flows - Mermaid State Diagrams
Create state diagrams and state machines with Mermaid - Mermaid Timeline Diagrams
Create timeline diagrams for chronological events with Mermaid - Mermaid Treemap Diagrams
Create treemap diagrams for hierarchical data visualization with Mermaid - Mermaid User Journey Diagrams
Create user journey maps with Mermaid - Mermaid ZenUML Diagrams
Create ZenUML sequence diagrams with Mermaid - P5.js Interactive Visualizations
Create interactive visualizations and animations with P5.js