Make a treemap chart: shares as areas
A treemap splits a rectangle into areas sized by value. This page covers how to lay out the data, when the chart works and where it misleads, how to build one in Excel, and how the treemap in Balane Sheets works, which ships with the next release.
What it does
- Area by value
- Each category becomes a rectangle whose area matches its value. Tiles are sorted by size, so large items stand out at once.
- Groups from several series
- With one data series there’s one rectangle per category. With several series, each series becomes a group with a heading, and its tiles are shades of the group colour.
- Name and value in the tile
- Each tile shows the category name at the top left with the value below it, as long as there’s room. Tiles that are too small stay unlabelled.
- In three apps
- The treemap is a chart type in Sheets, in the chart dialog of Documents and a visual in Reports. All three draw it with the same chart component.
- Transparent Excel export
- When saving as XLSX, Sheets writes an editable pie chart as a stand-in and tells you so in a notice.
What a treemap shows
A treemap answers the question of what a whole is made of and which parts carry weight. It fills a rectangle completely with smaller rectangles, one per item, each as large as its value. Ben Shneiderman at the University of Maryland came up with it around 1990, originally to show which folders and files were filling up a hard disk.
The example shows nine cost types totalling EUR 1,020k. Staff (412) takes up about 40% of the area, staff and materials together about two thirds. The other seven items share the last third. That message, two big blocks and a lot of small change, jumps out of a treemap, whereas a table makes you do the maths first.
Typical uses are cost structures, revenue by product or customer, budgets with many line items, and portfolios. A pie chart gets cluttered at around ten items because thin slices leave no room for labels; the rectangular tiles of a treemap stay readable for longer.

How to lay out the data
A simple treemap needs two columns: categories on the left, values on the right, and a header row on top. There’s no need to sort, because the tiles are arranged by size. The values must be parts of the same whole, for example all cost types for one year in the same unit.
The most common mistake is including the total row. It becomes the biggest tile and visually halves everything else. Subtotals listed next to their own line items are just as misleading, because the same money is counted twice. So select only the individual items.
For two levels, put the groups side by side in columns and the categories in rows. Each column then becomes a group. Negative values and zeros get no area; the chart check flags negative values instead of quietly dropping them.
Groups: two levels in one area
With several data series, the treemap groups first by series and then by category. The picture shows three regions with five product lines each. Every region gets its own block with a heading, and a legend sits above. The block size shows the region’s share, and the tiles inside show each product line’s share within that region.
That way you see two things at once: South is the largest region, and in the West the Pro line brings in more than Basic, unlike in the North. Comparisons across groups, such as Comfort in North versus Comfort in South, are tedious in a treemap, though. A grouped bar chart does that job better.

How the areas are laid out
The simplest layout slices the rectangle into alternating strips. That produces long, thin tiles that are hard to compare or label. Balane uses the squarified method by Bruls, Huizing and van Wijk from 2000: values are sorted in descending order and grouped into rows so that the tiles come out as square as possible.
The area stays proportional to the value; only the shape changes. A narrow gap separates the tiles, and the corners are slightly rounded. With one series, each category gets its own colour as in a pie chart; in groups, the tiles get lighter as they get smaller.
When a treemap is the wrong choice
Areas are harder to compare than lengths. Cleveland and McGill showed this in perception experiments back in 1984: people judge position and length more accurately than angles or areas. If it matters whether item A or B is larger, or by how much, a sorted bar chart is more precise.
With three or four items, a treemap adds little over bars or a pie. It can’t show losses, deductions or other negative values; for a bridge from one figure to the next use a waterfall, and for change over time a line chart.
Treemaps in Excel and getting into Office files
In Excel for Microsoft 365, Excel 2021 and Excel 2024, select the data and choose Insert › Insert Hierarchy Chart › Treemap, or go through Recommended Charts › All Charts. Labels are set via right-click › Format Data Series. Microsoft itself recommends a sunburst chart when the levels between the top category and the individual items matter.
The classic chart format in XLSX files, which Sheets writes, has no treemap. So Sheets writes an editable pie chart with the same data and points this out in a notice. In a test, LibreOffice displayed this pie stand-in; in the .bsheet file the treemap is kept.
Documents writes charts into Word and ODT files as an image or a table, not as an editable Office chart. Reports exports the treemap as PNG or PDF with the same look as in the report.
How it works
Select a range
In Sheets, select the header row and the individual items, for example cost types in column A and amounts in column B. Leave out total rows.
Open the chart dialog
Click “Chart…” in the toolbar. The same command is in the Insert menu and in the cell context menu.
Pick Treemap
In the Insert Chart dialog, choose the Treemap tile under Type. The preview on the left updates straight away; several value columns produce groups.
Check the title and layout
Enter a title under Content. Use “Series in Columns” and “First row contains series names” to decide whether columns or rows become groups. Then click Insert.
Save
As .bsheet the treemap is kept in full. When saving as XLSX, Sheets mentions the pie stand-in in a notice.
At a glance
- Area
- proportional to the value
- Layout
- Squarified, sorted by size
- Several series
- as groups with headings
- Also in
- Documents, Reports
- XLSX
- Pie stand-in with notice
Limits
What the feature can’t do yet, or what hasn’t been tested.
- Coming soon: the treemap is built and tested but not in a released version of Sheets yet. The pictures were made by the automated screenshot test; it hasn’t been checked by hand in the finished app.
- In XLSX the treemap becomes a pie chart. Excel itself wasn’t opened for this; the display was checked in LibreOffice.
- Two levels are the maximum: groups from series and tiles from categories. Deeper hierarchies such as division › department › cost centre aren’t possible.
- In Word and ODT files from Documents, the treemap is an image or a table, not an editable chart.
- Negative values can’t be shown as areas.
Frequently asked questions
What data do I need for a treemap?
One column of categories and at least one column of positive values that add up to a whole. Every additional value column becomes its own group.
Treemap or pie chart?
For up to about five shares a pie is familiar and does the job. With many items, or when a second level comes in, a treemap stays more readable. For precise comparisons, sorted bars beat both.
Can I keep editing the treemap in Excel?
Only as a stand-in: the XLSX file contains an editable pie chart with the same data. To edit it as a treemap, keep working in Sheets.
How many levels does the treemap have?
Two: with one data series there’s one rectangle per category; with several series there’s one group per series with the categories inside.
Why do some tiles have no label?
The name and value only appear if they fit inside the tile. Very small items stay unlabelled; you can read their value in the table next to the chart.
Do I need a paid version for treemaps?
No. Sheets is free and works without an account, and the treemap is one of the standard chart types. The spreadsheet stays as a file on your device.
When will treemaps be in Sheets?
With the next released version of Sheets. It’s built and tested; there’s no release date yet.
Balane Office is a long-running experiment: nine office apps, mostly built with AI. The apps are free and save to your own device. About the experiment →