Heat mapA grid coloured by value.
A table where colour does the reading. Dark cells are high, pale cells are low, and the patterns show before any number is read.
- Answers Do two things move together?
- Your data one number per row and column
- Grid about 3 to 50 on each side
- Colour one hue, pale to dark
- Excel and Power BI conditional formatting
What is a heat map?
A heat map is a grid of rows and columns in which each cell's colour shows its value: pale for low, dark for high. Because the eye reads colour faster than numbers, patterns across the two categories jump out: a dark band, a bright corner, a pale gap.
A web shop counts visits by weekday and time of day. On the heat map, weekday evenings at 18:00 are the darkest band, mornings at 06:00 are pale every day, and the weekend shifts later.
Why use a heat map?
Because colour finds patterns in a big table at a glance.
- Patterns first. Bands, corners and gaps show before reading a number.
- Two categories at once. Rows and columns, like days and hours.
- Many cells. A 7 by 24 grid still reads as one picture.
- Familiar. It is a table with colour, which everyone knows.
How does a heat map work?
Four steps turn a table into a picture.
- Step 1 of 4A tableWeekdays as rows, hours as columns.
- Step 2 of 4Colour each cellPale for few visits, dark for many.
- Step 3 of 4Write the numbersWith few cells, the exact value inside each.
- Step 4 of 4Read a bandThe weekend rows look different from the weekdays.
One colour from pale to dark works best: the eye ranks lightness easily, but not a rainbow of hues.
What are the parts of a heat map?
Four parts, and each one has a job.
- Dark cella high value
- Pale cella low value
- Rowone category, here a weekday
- Columnthe other category, here an hour
How do you read a heat map?
Three looks, in this order.
- Find the darkest cellsThursday at 18:00 is the peak: 7,800 visits.
- Find the bandsThe 18:00 column is dark on weekdays, the 06:00 column pale every day.
- Compare the rowsThe weekend starts late and peaks in the afternoon or evening.
What kinds of heat map are there?
The same visits, three ways.
- Kind 1With numbersColour and the exact value in each cell.
- Kind 2Colour onlyNo numbers: the pattern alone, for big grids.
- Kind 3One row litThe other rows fade, for one story.
A calendar heat map lays the cells out as the days of a calendar, and a correlation matrix is a heat map of how pairs of numbers move together.
When should you use a heat map?
When one number depends on two categories and the pattern matters more than exact values.
- there is one value per row and column
- the grid has many cells
- patterns (bands, peaks) are the story
- rough values are enough
- exact values must be compared (a bar chart or a table)
- one category only (a bar chart)
- the columns are time and the shape over time matters (a line chart)
Heat map or line chart?
A heat map for many rows, a line chart for a few.
Seven weekdays as seven lines over the hours tangle into a knot. The heat map gives each day its own row, so the dark evening band and the late weekend show at once.
How do you make a heat map?
Conditional formatting in Excel and Power BI.
In Excel, select the table of numbers and choose Home > Conditional Formatting > Color Scales; pick a scale from white to one colour. In Power BI, use a matrix with the two categories as rows and columns and turn on background colour in the cell elements (the matrix visual). What a heat map shows explains more about colour scales.
What goes wrong with heat maps?
The most common mistake, and its fix: a rainbow colour scale.
- red, yellow, green and blue have no natural order
- readers cannot tell which is higher
- lightness has an order everyone reads
- two colours only when there is a middle (like zero)
| Mistake | Why it hurts | Fix |
|---|---|---|
| A rainbow scale | No order in the colours | One colour, pale to dark |
| No key | Readers cannot read the values | A key, or numbers in the cells |
| Rows in random order | Patterns hide | A natural order or sorted rows |
| One huge value | Everything else looks pale | Cap the scale, say so |
| Red and green together | Hard for colour-blind readers | Blue and orange, or one hue |
Every chart for “Do two things move together?”
- Two numbersScatter plotOne dot per item, two numbers as its position.
- Two numbersTrend lineThe straight line that best fits a scatter of dots.
- Two numbersHexbin plotA scatter with too many dots, counted in hexagons.
- Two numbersContour plotRings around where dots crowd, like height lines on a map.
- Three numbersBubble chartA scatter plot whose dot size is a third number.
- Many numbersScatterplot matrixA scatter plot for every pair of numbers, in a grid.
- Many numbersCorrelation matrixA grid of how strongly each pair of numbers moves together.
- Two categoriesQuadrant chartA scatter split into four boxes, for sorting items into groups.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.