How to make a treemap
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with one or more text columns for Levels and a number column for Value.
-
Check the columns
The treemap picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a treemap?
A treemap divides a rectangle into nested tiles, each sized by value, so the hierarchy and the relative size of every part show in one view. It suits budgets, file sizes and population breakdowns.
How to read it
Tile area is the value, and tiles of the same colour belong to the same parent. Look at the largest tiles first, then at how each group splits internally.
When to use it
Nested parts of a whole as rectangles sized by value. It is one of the part to whole charts, which show how a total splits into its parts.
For a flat list of a few parts, a Bar chart or Donut chart is simpler. When the structure matters more than size, an Icicle chart or Sunburst shows each level more clearly.
Tips for a better treemap
- Supply a path column with levels joined by a separator, plus a value column.
- Keep the hierarchy to two or three levels so tiles stay large enough to label.
- Use positive, additive values, since a tile's area is the sum of its children.
Data you need
One row per item with one or more text columns for Levels and a number column for Value. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Continent | Country | Population (millions) |
|---|---|---|
| Asia | India | 1441 |
| Asia | China | 1425 |
| Asia | Indonesia | 279 |
| Asia | Pakistan | 245 |
| Asia | Bangladesh | 174 |
| Asia | Japan | 123 |
| Asia | Philippines | 119 |
| Asia | Vietnam | 99 |
Other charts for the same data
More part to whole charts
Questions, answered
- What is a treemap?
- A treemap divides a rectangle into nested tiles, each sized by value, so the hierarchy and the relative size of every part show in one view. It suits budgets, file sizes and population breakdowns.
- How do you read a treemap?
- Tile area is the value, and tiles of the same colour belong to the same parent. Look at the largest tiles first, then at how each group splits internally.
- How do I make a treemap?
- Paste your data into the chart maker with one or more text columns for Levels and a number column for Value. The treemap draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a treemap?
- Nested parts of a whole as rectangles sized by value. It belongs to the part to whole family of charts, which show how a total splits into its parts. For a flat list of a few parts, a Bar chart or Donut chart is simpler. When the structure matters more than size, an Icicle chart or Sunburst shows each level more clearly.
- Is this treemap maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the treemap as SVG or PNG.