/docsfor

Heatmap

A matrix colored by value.

import { Heatmap } from "diagrammatic";

Seven days, twenty-four hours, a dot per cell. The punchcard is the job Heatmap already owns.

Commits by weekday and hourMonTueWedThuFriSatSun036912151821

Illustrative data. Commits by weekday and hour, last 12 weeks. n = 1,246.

fig. 38.1 · Commits by weekday and hour

The 15h to 16h block is busiest on weekdays, with 57 commits per day. Thursday has the largest late cluster, with 11 commits at both 21h and 22h against seven on other weekdays. Saturday morning exists; Sunday almost does not. Empty hours stay empty.

Twenty-six weeks, seven days. Empty cells stay empty. This is the calendar job, not the punchcard.

Production deploysMonTueWedThuFriSatSunw1w5w9w…w…w…w…

Illustrative data. Production deploys across 26 weeks. n = 263.

fig. 38.2 · Production deploys, last half year

Tuesday has 126 deploys across the 26 weeks, more than any other day. Thursday follows with 49. Saturday and Sunday have activity only in weeks 11 and 19. The first week has only one Tuesday deploy.

Use it for
Category-by-category intensity: confusion matrices, correlations, schedules.
Watch out
One sequential ramp only; a rainbow scrambles the order.