Heatmap

A Heatmap lays two categories against each other — one down the side, one across the top — and shades each cell by a number. It answers questions such as which routes carry the most revenue? or which weekday and hour are busiest? at a glance: the darkest cells are the biggest values.

Build one

  1. Open the mode picker at the top of the Explore sidebar.

  2. Under Chart, choose Heatmap.

  3. Click Add Measure and pick the number that shades the cells — for example Total (bookings).

  4. Click Add Vertical Segment and pick the category for the rows — for example Origin Country.

  5. Click Add Horizontal Segment and pick the category for the columns — for example Destination Country.

Each cell is the measure for one row-and-column pair; a pair with no data stays empty. The colour runs from the page background (the smallest value) to the measure's colour (the largest), and a scale above the chart reads the values back — Legend in Chart Config moves it, and Invert Colors turns the colours around so the smallest values stand out.

Options

Option Where What it does
Measure Add Measure Shades the cells. A heatmap shows one measure: once it is set, Add Measure gives way to This visualization shows a single measure. Extra measures from another visualization are set aside as Missing Measures and come back when you switch to a chart that can hold them.
Rows Add Vertical Segment The category down the side. Add more than one and each row is a combination, such as "United States · Credit Card". A date gives one row per period.
Columns Add Horizontal Segment The category across the top, with the same choices.
Sort Click a row or column segment → Sort Natural, Reverse, Lowest to Highest or Highest to Lowest. Rows read from the top, so the first row in that order is the top one. A date axis is in time order unless you choose otherwise.
Colour Click the measure → colour The colour the darkest cells take.
Cell values Automatic The value is printed in each cell when the grid has at most 200 cells.
Legend Chart Config Where the colour scale sits, or No Legend.
Invert Colors Chart Config Turn the scale around: the lowest values take the measure's colour and the highest fade to the background. Use it when less is what you are looking for — the shortest wait, the fewest defects, the lowest cost.
Axes Chart Config → Horizontal Axis / Vertical Axis Show the axis line, its name, its labels and gridlines; turn the labels to an angle; space the row labels.
Top or Bottom Top or Bottom Keep only the highest or lowest rows. The Other roll-up is not drawn on a heatmap, because it has no row and column of its own.
Filters Add Filter Narrow the data — see Filters.
Animate By Animate By… Play the heatmap through the values of a date or category — see Chart Options.

Chart Config

The heatmap's own Chart Config section at the bottom of the sidebar holds the legend, the Invert Colors switch and one section per axis. There is no orientation choice — the two axes are fixed by the two segments — and the vertical axis lists categories, so it has no minimum, maximum or number format.

On the Vertical Axis, Value spacing labels every N-th row (2 labels every second row; 1 labels every row, even where the chart would otherwise drop some to avoid overlap), and Grid lines spacing draws a line every N rows. Everything else is described in Chart Options.

Tips

  • Two time groupings make a classic "when" heatmap: Add Vertical Segment a date with Day of Week granularity, Add Horizontal Segment the same date with Hour of Day. See Segments → Time grouping.
  • Long category names read better across the top at an angle: set Labels on the Horizontal Axis to 45°.
  • Too many cells to read? Add a Top or Bottom limit or a filter, or swap a fine segment for a coarser one.

Pin it to a dashboard

  1. Click Add to Dashboard in the Explore toolbar.
  2. Pick an existing dashboard, or Create New Dashboard.
← Box PlotTreemap →