AI Treemap generator
Describe your treemap in plain English and get editable Mermaid code instantly. Show hierarchical data as nested rectangles sized by value.
Example prompts for a treemap
- “Website bundle size by package”
- “Company headcount by department and team”
- “Time spent per project per month”
What a Mermaid treemap looks like
Example treemap
mermaid
treemap-beta
"Annual budget"
"Engineering"
"Salaries": 600
"Cloud": 150
"Tools": 50
"Marketing"
"Ads": 200
"Events": 80
"Operations"
"Office": 120
"Legal": 40Want to write it by hand? See the full Mermaid treemap syntax and examples, or browse templates.
Frequently asked questions
How do I generate a treemap with AI?
Describe the treemap you need in the box above and click Generate. The AI writes valid Mermaid treemap code that renders instantly, and you can open it in the editor to refine it.
Is the AI treemap generator free?
You can try it free — 5 AI generations in total, no sign-up needed. Starter includes 500 AI conversations a month and Pro is unlimited. Manual editing and export stay free after that.
Can I edit the generated treemap?
Absolutely. The output is plain Mermaid code — edit it by hand in the live editor, or ask the AI for changes in natural language.