Treemap

A rectangle split into smaller rectangles, each sized by its value, often nested to show parts within parts.

What is a treemap?

The whole rectangle is the total, such as the project budget. Each block's area is its share, so the biggest items are seen first. Blocks can be split again, for example development into backend and frontend.

Treemaps handle many items and levels in a small space, where a pie chart would fail.

Example treemap: A 2.3M project budget as nested rectangles sized by amount; development takes about half and is split into backend and frontend.
  1. Largest block. Development: about half of the budget.
  2. Second block. Infrastructure.
  3. Nested blocks. Development split into backend and frontend.
  4. Small blocks. Training, legal, and other.

When to use a treemap

Good fit

  • Budgets with many lines
  • Portfolio spend by department and project
  • Nested breakdowns
  • Finding the biggest items in a long list

Consider something else

Advantages and limitations

Advantages

  • Shows many items in little space
  • Big items stand out immediately
  • Shows hierarchy
  • Built into modern spreadsheets

Limitations

  • Areas are hard to compare precisely
  • Small blocks can't hold labels
  • Not for negative values
  • Layout can feel arbitrary

Tools for making a treemap

Excel and Google Sheets have treemaps built in.

Spreadsheets

From a table with categories and values.

  • Microsoft ExcelTreemap chart (2016 and later) (Built in)
  • Google SheetsTreemap chart (Built in)

Hover over a tool to see how it makes the chart; each tool’s page has the details. Built in: part of the product. Template: ready-made, you fill it in. Build it yourself: made with shapes, tables, or standard charts. Add-on: needs an add-on, integration, or paid module. Data only: keeps the data; the chart is drawn elsewhere.

Tools are grouped by how teams work, not ranked. Features and plans change, so check the details on each vendor’s site.

FAQ

When is a treemap better than a pie chart?

When there are many parts or several levels. A pie becomes unreadable beyond five slices; a treemap handles dozens.

Can a treemap show change over time?

Not well. Use color for change, such as growth versus last year, or use a line or bar chart.

How are the blocks arranged?

Tools usually place the biggest blocks first, top left, and fill the space so blocks stay close to square.