Treemap
A Treemap shows how a total splits into parts, and how each part splits again. Every tile's area is its share of the number; the first segment makes the big tiles, and each further segment nests smaller tiles inside them. Use it when a pie would have too many slices, or when the breakdown has levels — city, then hotel chain; region, then country, then store.
Build one
-
Open the mode picker at the top of the Explore sidebar.
-
Under Chart, choose Treemap.
-
Click Add Measure and pick the number that sizes the tiles — for example Nightly Rate (hotels).
-
Click Add Segment and pick the top level — for example City under Hotels.
-
Click Add Segment again and pick the level inside it — for example Hotel Chain.
Each tile is labelled with its value's name; hover a tile to read its full path and value. Only positive values have an area, so a zero or negative value has no tile.
Options
| Option | Where | What it does |
|---|---|---|
| Measure | Add Measure | Sizes the tiles. The first measure is the size; a second one can colour them (below). |
| Levels | Add Segment | The first segment is the top level, each further one nests inside it. Drag segment rows to change the order of the levels. |
| Colour | Colour By Attribute or Measure | Left alone, each top-level tile takes its own hue. Pick a segment to colour every tile of that level by its value, or a measure to shade the tiles from light to dark. |
| Reset colours | Click the colour row → Reset to default colouring | Back to one hue per top-level tile. |
| Top or Bottom | Top or Bottom | Keep only the biggest or smallest tiles, optionally with an Other tile for the rest — see Measures → Top / Bottom N. |
| Filters | Add Filter | Narrow the data — see Filters. |
| Animate By | Animate By… | Play the treemap through the values of a date or category — see Chart Options. |
A treemap has no axes and no Chart Config section: its layout is decided by the numbers.
Colour the tiles
-
Click Colour By Attribute or Measure below the segments.
-
Pick a source: under Colour by Attribute, one of your segments — for example Hotel Chain — or, under Colour by Measure, one of your measures.
-
The tiles repaint. Colouring by an attribute gives every value of that level its own colour, the same colour it has on every other chart; colouring by a measure shades each tile by that measure's value.
Coloured by a measure, click the colour row and turn on Invert Colors to shade the tiles the other way round — the lowest values darkest, the highest lightest. To go back, click the colour row and choose Reset to default colouring. Only attribute segments are offered for colouring — a date segment is not.
Tips
- Put the coarsest level first: the eye reads the big tiles before the small ones.
- Two or three levels are plenty. Past that, the inner tiles get too small to label — add a Top or Bottom limit or a filter.
- Colouring by a measure other than the size shows two numbers at once — for example size by revenue, colour by average rating.
Pin it to a dashboard
- Click Add to Dashboard in the Explore toolbar.
- Pick an existing dashboard, or Create New Dashboard.