Charts / Compare
Treemap vs sunburst Two ways to show parts inside parts.
Short answer
Use a treemap when there are many parts and you want to see them all at once, as rectangles. Use a sunburst for a round view of a total, its parts and their sub-parts, when the levels matter more than exact sizes.
Updated Nov 2, 2026 · AI sample data
030 · Treemap Every team and model at once: Research spends $20.2K.
022 · Sunburst The same $48.2K in rings: teams inside, models outside.
Same $48.2K
The treemap fits every part on the card and makes the big ones obvious. The sunburst shows the levels: which team, then which model. Atlas 3 is the biggest model in Research, Nova the smaller one in Search.
If you ask Which parts are biggest, out of many?
Use a Treemap
What sits inside each part?
Use a Sunburst
Are the names long?
Use a Treemap
Is the total the centre of the story?
Use a Sunburst
Common mistakes Treemap Too many levels. Past two, the small tiles vanish.
Colour for size. Size already carries the value; use colour for the group.
Sunburst Many thin slices. The outer ring turns into slivers. Group the small parts.
Comparing across rings. Arcs in different rings are hard to compare.
Other ways to show it Spend breakdown Inference spend of $48.2K across 4 teams: Support $18.4K, Search $12.1K, Agents $10.6K, Labs $7.1K; the largest project is Chat bot at $11.2K. All teams Support $18.4K Chat bot $11.2K Search $12.1K Agents $10.6K SUPPORT SEARCH AGENTS LABS Spend breakdown Inference spend of $48.2K across 4 teams: Support $18.4K, Search $12.1K, Agents $10.6K, Labs $7.1K; the largest project is Chat bot at $11.2K. All teams Support $18.4k Chat bot $11.2k Search $12.1k Agents $10.6k Support Search Agents Labs Spend breakdown Team Project Spend Support Chat bot $11.2K Support Triage $7.2K Search Rerank $7.5K Search Embed $4.6K Agents Ops $6.4K Agents Sales $4.2K Labs Evals $7.1K
Spend breakdown Inference spend of $48.2K across 4 teams: Support $18.4K, Search $12.1K, Agents $10.6K, Labs $7.1K; the largest project is Chat bot at $11.2K. All teams Support $18.4K Search $12.1K Agents $10.6K SUPPORT SEARCH AGENTS LABS Spend breakdown Inference spend of $48.2K across 4 teams: Support $18.4K, Search $12.1K, Agents $10.6K, Labs $7.1K; the largest project is Chat bot at $11.2K. All teams Support $18.4k Search $12.1k Agents $10.6k Support Search Agents Labs Spend breakdown Team Project Spend Support Chat bot $11.2K Support Triage $7.2K Search Rerank $7.5K Search Embed $4.6K Agents Ops $6.4K Agents Sales $4.2K Labs Evals $7.1K
MRR by plan Monthly recurring revenue of $184K by plan: Enterprise $82K (45%), Business $54K (29%), Team $31K (17%), Starter $17K (9%). Enterprise $82K Business $54K Team $31K Starter $17K MRR by plan Monthly recurring revenue of $184K by plan: Enterprise $82K (45%), Business $54K (29%), Team $31K (17%), Starter $17K (9%). $184k Total Enterprise $82k 45% Business $54k 29% Team $31k 17% Starter $17k 9% MRR by plan Plan MRR Share Enterprise $82K 45% Business $54K 29% Team $31K 17% Starter $17K 9%
MRR by plan Monthly recurring revenue of $184K by plan: Enterprise $82K (45%), Business $54K (29%), Team $31K (17%), Starter $17K (9%). Enterprise $82K Business $54K Team $31K Starter $17K MRR by plan Monthly recurring revenue of $184K by plan: Enterprise $82K (45%), Business $54K (29%), Team $31K (17%), Starter $17K (9%). $184k Total Enterprise $82k 45% Business $54k 29% Team $31k 17% Starter $17k 9% MRR by plan Plan MRR Share Enterprise $82K 45% Business $54K 29% Team $31K 17% Starter $17K 9%
Sales by region and category, Q3 Q3 net sales by region: NA 38%, EU 30%, APAC 20%, LATAM 12%; Electronics is 46% of APAC, Apparel 41% of EU. 34% 22% 28% NA 38% 41% 25% 18% EU 30% 22% 46% 18% APAC 20% APPAREL HOME ELECTRONICS BEAUTY Sales by region and category, Q3 Q3 net sales by region: NA 38%, EU 30%, APAC 20%, LATAM 12%; Electronics is 46% of APAC, Apparel 41% of EU. 34% 22% 28% NA 38% 41% 25% 18% EU 30% 22% 46% 18% APAC 20% Apparel Home Electronics Beauty Sales by region and category, Q3 Region Share of sales Apparel Home Electronics Beauty NA 38% 34% 22% 28% 16% EU 30% 41% 25% 18% 16% APAC 20% 22% 14% 46% 18% LATAM 12% 38% 30% 12% 20%
Sales by region and category, Q3 Q3 net sales by region: NA 38%, EU 30%, APAC 20%, LATAM 12%; Electronics is 46% of APAC, Apparel 41% of EU. 34% 22% 28% NA 38% 41% 25% EU 30% 22% 46% APAC APPAREL HOME ELECTRONICS BEAUTY Sales by region and category, Q3 Q3 net sales by region: NA 38%, EU 30%, APAC 20%, LATAM 12%; Electronics is 46% of APAC, Apparel 41% of EU. 34% 22% 28% NA 38% 41% 25% 18% EU 30% 22% 46% 18% APAC Apparel Home Electronics Beauty Sales by region and category, Q3 Region Share of sales Apparel Home Electronics Beauty NA 38% 34% 22% 28% 16% EU 30% 41% 25% 18% 16% APAC 20% 22% 14% 46% 18% LATAM 12% 38% 30% 12% 20%
Questions Which is easier to read? The treemap for exact sizes; the sunburst for the levels.
How many levels fit? Two read well in both; the sunburst can take a third.
Do both come in every size? Yes. Treemap and Sunburst come in XS, S, M and L, each laid out again for its size, in light and dark.
Do they install the same way? Yes, one command each: npx shadcn add @chartory/treemap and npx shadcn add @chartory/sunburst.