Treemap
A hierarchical visualization using nested rectangles to show proportions.
Definition
Treemaps display hierarchical (tree-structured) data as a set of nested rectangles. Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches. The area of each rectangle is proportional to a specified dimension of the data (e.g., size, value), making it useful for visualizing part-to-whole relationships within a hierarchy.
Examples
E-commerce revenue breakdown by product category hierarchy, showing multiple levels of categorization
Chart Visualization
This example includes an interactive chart visualization with 25 data points.
Chart type: treemap
Usage
Best Used For
- Showing hierarchical structures and their relative sizes
- Comparing proportions within nested categories
- Visualizing disk space usage or organizational structures
- Displaying large amounts of hierarchical data compactly
Data Requirements
[Object]
When to use this chart
Hierarchical spend
Data shape: Account → campaign → ad set spend hierarchy
Single snapshot only; use bar chart when precise ranking matters
Source: Shneiderman (1992), treemap original; Few (2009) — area comparisons are approximate
Limitations
Important Considerations
- ⚠Deep hierarchies can become difficult to read and label
- ⚠Comparing areas of non-adjacent rectangles can be hard
- ⚠Aspect ratios of rectangles can sometimes distort area perception
- ⚠Not effective for showing evolution or changes over time
Best Used For
- Showing hierarchical structures and their relative sizes
- Comparing proportions within nested categories
- Visualizing disk space usage or organizational structures
- Displaying large amounts of hierarchical data compactly
Supplemental Resources
- 📚Marketing Data Visualization Guide
Which chart type to use for ROAS trends, funnel drop-off, creative tests, and cohort retention
AdSights Guide - 📚Which Chart for Which Metric (Interactive Guide)
Full interactive companion with tabbed chart matrix, retention curves, axis-integrity demo, and pie-vs-bar comparison.
AdSights Article
Frequently asked questions
Common questions about Treemap, answered.
What is a treemap?
When should I use a treemap?
Treemap vs pie chart — which is better for composition?
How do I keep a treemap readable?
Can treemaps show a second variable with color?
Related Terms
Featured in topic hubs
Explore this term in context — alongside the related metrics, calculators, and guides curated in these hubs.