Calendar heatmapEvery day a square.
A square for every day, weeks across and weekdays down, darker for busier days. Habits, weekends and quiet weeks jump out.
- Answers How did it change?
- Your data a number per day
- Days a few weeks to a year
- Shades 4 to 5
- Excel and Power BI conditional formatting or a matrix
What is a calendar heatmap?
A calendar heatmap is a grid of one square per day, laid out like a calendar: weeks run across, weekdays run down, and the darker the square, the higher the value. It shows patterns by day of the week and by season that a line over hundreds of days would hide.
A gym counts its visitors every day for twelve weeks. On a calendar heatmap, Mondays and Wednesdays are dark, Sundays are pale, and the week of a holiday is almost empty.
Why use a calendar heatmap?
Because it shows the rhythm of days that a line hides.
- Weekday patterns. Rows are weekdays, so a busy Monday is a dark row.
- Odd days stand out. A holiday or an outage is a pale square or week.
- A year on one screen. 365 squares fit where a line would be a scribble.
- Familiar. Everyone can read a calendar.
How does a calendar heatmap work?
Three steps turn a list of days into a calendar.
- Step 1 of 3A grid like a calendarWeeks across, weekdays down: one square per day.
- Step 2 of 3A shade per valueBusier days get darker squares, from five shades.
- Step 3 of 3A key of shadesLess to more, so readers know what dark means.
What are the parts of a calendar heatmap?
Four parts, and each one has a job.
- Squareone day; darker is more
- Weekeach column is one week
- Weekdayeach row is one day of the week
- Keywhich shade means how much
How do you read a calendar heatmap?
Three looks, in this order.
- Read the rowsMonday and Wednesday rows are darkest: the busiest days.
- Find the pale columnWeek 4 is almost empty: the holiday week.
- Read acrossThe squares darken week by week: visits are growing.
What kinds of calendar heatmap are there?
The same days, three ways.
- Kind 1CalendarWeeks across, weekdays down.
- Kind 2One week litFade the rest to point at one week.
- Kind 3LinesOne line per weekday over the weeks: a tangle.
When should you use a calendar heatmap?
When daily values have a weekly or seasonal rhythm.
- there is one number per day
- the day of the week matters
- odd days or weeks should stand out
- there are a few weeks to a few years
- exact values matter (a table or a line chart)
- the trend matters more than the rhythm (a line chart)
- there is a number per hour (a heatmap of hours by days)
- there are only a few days (a column chart)
Calendar heatmap or line chart?
The calendar for rhythm, the line for trend.
A line chart of the same days draws one line per weekday that zigzags and crosses: the holiday week shows as a dip, but the weekday rhythm is a tangle. The calendar puts each weekday in its own row, so the rhythm is the picture.
How do you make a calendar heatmap?
With conditional formatting in Excel, a matrix in Power BI.
In Excel, lay the days out as a grid (weeks in columns, weekdays in rows) and add Conditional formatting > Color scales. In Power BI, a matrix with week in columns, weekday in rows and background colour by value draws it; a date table gives the week and weekday columns. In Python, the calplot or july packages draw one from a date series.
What goes wrong with calendar heatmaps?
The most common mistake, and its fix: a colour scale that hides the pattern.
- cut the shades at sensible steps (or quantiles)
- show the record day as the darkest shade
- add a key
| Mistake | Why it hurts | Fix |
|---|---|---|
| An outlier sets the scale | Every other day looks pale | Steps or quantiles for the shades |
| A rainbow of colours | Order of colours is unclear | One colour, light to dark |
| No key | Dark means nothing in numbers | A less-to-more key with values |
| Weeks that start on different days | Rows mix weekdays | One fixed first day |
| Missing days drawn as zero | A gap looks like an empty day | Draw missing days differently |
Every chart for “How did it change?”
- LinesLine chartPoints in time joined by a line, for the shape of a trend.
- LinesStep chartA line that jumps and holds, for values that change at moments, like prices.
- LinesSparklineA tiny line without axes next to a number, for the trend at a glance.
- LinesIndex chartEvery line starts at 100, so growth compares fairly across sizes.
- LinesSlope chartTwo moments and a line per item, to see who rose and who fell.
- LinesConnected scatter plotTwo measures over time, the points joined in the order they happened.
- AreasArea chartA line chart with the space below filled, for amounts over time.
- AreasStacked area chartLayers stacked over time, for a total and the parts that build it.
- Areas100% stacked area chartLayers that always fill the height, for shares over time.
- AreasStreamgraphFlowing layers around a centre line, for many series that rise and fall.
- AreasHorizon chartA line chart folded into bands of colour, for many series in little space.
- Columns and linesCombo chartColumns and a line on one chart, for an amount and a rate together.
- Rank over timeBump chartRanks over time, one line per item, to follow who moves up and down.
- Rank over timeRibbon chartStacked columns joined by ribbons, the largest always on top.
- Patterns in timeCycle plotEach month or weekday as its own little line, for seasons.
- PricesCandlestick chartOpen, high, low and close for each period, the way prices are shown.
- EventsTimelineEvents placed on a line in the order they happened.
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.