Quire UI
Charts10

Activity heatmap

Activity per day, a column per week, like deploys over a year. Read days by pointer or keys, drag to choose a range, with streaks and weekday totals. Levels follow the spread of the days. No chart library.

1,521 deploys in totalLongest streak 6 days, current 1
LessMore
Deploys in the last year
Monthin totalBusiest day
November 2025103 deploysWednesday, November 19, 2025: 11 deploys
December 2025117 deploysTuesday, December 9, 2025: 11 deploys
January 2026119 deploysWednesday, January 7, 2026: 9 deploys
February 202682 deploysWednesday, February 4, 2026: 7 deploys
March 2026105 deploysWednesday, March 4, 2026: 8 deploys
April 2026153 deploysTuesday, April 28, 2026: 11 deploys
May 2026148 deploysWednesday, May 20, 2026: 11 deploys
June 2026118 deploysTuesday, June 2, 2026: 10 deploys
July 202693 deploysThursday, July 2, 2026: 7 deploys
August 2026109 deploysWednesday, August 26, 2026: 10 deploys
September 2026196 deploysTuesday, September 15, 2026: 48 deploys
October 2026152 deploysWednesday, October 7, 2026: 11 deploys
November 202626 deploysWednesday, November 4, 2026: 10 deploys

Installation

npx shadcn@latest add @quireui/activity-heatmap

Usage

<ActivityHeatmap
  label="Deploys in the last year"
  days={[
    { date: "2026-11-05", value: 6 },
    { date: "2026-11-06", value: 3 },
    // ...
  ]}
  unit={{ one: "deploy", other: "deploys" }}
/>

Each column is a week and each row a weekday, from the locale's first day; weekStartsOn changes it. Days you leave out count as zero. The grid ends at the latest day you pass, or at to, and starts 52 weeks before it, or at from.

Point at a day, or arrow to it, and the line under the grid reads it, like "Tuesday, September 15, 2026: 48 deploys". The legend's swatches pick out every day at that level.

Levels that one day cannot flatten

A launch, an incident or a big import makes one day far busier than the rest. Levels set by quarters of the busiest day would push almost every other day into the palest two. Here they follow the spread of the days that had any activity: a quarter of them fall in each level, so the year keeps its shape, and the busy day is simply the darkest. The year above has a launch day of 48 deploys against a usual 3 to 8. thresholds sets the levels yourself.

Streaks and weekdays

streaks adds the longest run of active days and the one still running at the end. weekdays adds each weekday's total at the end of its row, the busiest in a stronger ink, so "we ship on Wednesdays" is read off rather than guessed.

Choosing a range

onRangeSelect lets a drag across days, or Shift with the arrow keys and Enter, choose a range, and the line under the grid gives its total while you do. active and onActiveChange share the day being read, so a chart beside it follows the same cursor. Here the range sets the chart, and pointing at either moves both.

1,521 deploys in total
LessMore
Deploys in the last year
Monthin totalBusiest day
November 2025103 deploysWednesday, November 19, 2025: 11 deploys
December 2025117 deploysTuesday, December 9, 2025: 11 deploys
January 2026119 deploysWednesday, January 7, 2026: 9 deploys
February 202682 deploysWednesday, February 4, 2026: 7 deploys
March 2026105 deploysWednesday, March 4, 2026: 8 deploys
April 2026153 deploysTuesday, April 28, 2026: 11 deploys
May 2026148 deploysWednesday, May 20, 2026: 11 deploys
June 2026118 deploysTuesday, June 2, 2026: 10 deploys
July 202693 deploysThursday, July 2, 2026: 7 deploys
August 2026109 deploysWednesday, August 26, 2026: 10 deploys
September 2026196 deploysTuesday, September 15, 2026: 48 deploys
October 2026152 deploysWednesday, October 7, 2026: 11 deploys
November 202626 deploysWednesday, November 4, 2026: 10 deploys
Deploys, Sep 12 to Nov 6
DayDeploys
Sep 120
Sep 131
Sep 146
Sep 1548
Sep 169
Sep 179
Sep 184
Sep 190
Sep 201
Sep 216
Sep 220
Sep 239
Sep 249
Sep 255
Sep 260
Sep 271
Sep 285
Sep 2910
Sep 3012
Oct 18
Oct 25
Oct 30
Oct 41
Oct 57
Oct 69
Oct 711
Oct 87
Oct 95
Oct 100
Oct 111
Oct 127
Oct 138
Oct 140
Oct 1510
Oct 164
Oct 170
Oct 180
Oct 196
Oct 2010
Oct 219
Oct 228
Oct 233
Oct 240
Oct 250
Oct 265
Oct 279
Oct 287
Oct 297
Oct 305
Oct 310
Nov 11
Nov 24
Nov 37
Nov 410
Nov 50
Nov 64

In a small space

Cells grow with the space, from 8 to 15 pixels. Narrower than that, the grid scrolls and starts at the newest week; a soft fade on the edge says there is more, and a slim scroll bar shows only on hover or while scrolling. The weekday names stay in view.

1,521 deploys in total
LessMore
Deploys in the last year
Monthin totalBusiest day
November 2025103 deploysWednesday, November 19, 2025: 11 deploys
December 2025117 deploysTuesday, December 9, 2025: 11 deploys
January 2026119 deploysWednesday, January 7, 2026: 9 deploys
February 202682 deploysWednesday, February 4, 2026: 7 deploys
March 2026105 deploysWednesday, March 4, 2026: 8 deploys
April 2026153 deploysTuesday, April 28, 2026: 11 deploys
May 2026148 deploysWednesday, May 20, 2026: 11 deploys
June 2026118 deploysTuesday, June 2, 2026: 10 deploys
July 202693 deploysThursday, July 2, 2026: 7 deploys
August 2026109 deploysWednesday, August 26, 2026: 10 deploys
September 2026196 deploysTuesday, September 15, 2026: 48 deploys
October 2026152 deploysWednesday, October 7, 2026: 11 deploys
November 202626 deploysWednesday, November 4, 2026: 10 deploys

Loading and empty

No data

Accessibility

The grid is one tab stop. Its rows are the weekdays and its cells the days, each named with its date and count; the arrow keys move between them and screen readers read the one you are on. The legend's swatches are toggle buttons named by the counts each level holds. A table of the months, with each month's total and busiest day, is read with it.

KeyAction
↑ / ↓Previous or next day
← / →A week back or forward
PageUp / PageDownFour weeks back or forward
Home / EndFirst or last day
Shift + arrowsWith onRangeSelect: grows a range from where the cursor was
EnterChooses the range, or calls onPick with the day
EscDrops the range, then leaves the day

Motion

The grid arrives once, rising into place, when it first scrolls into view. When new data arrives, each day's colour eases to its new level, and a level picked in the legend fades the others. Reading a day follows the pointer and the keys without easing.

Activity heatmap or something else?

  • A trend over days, where the exact shape matters more than the weekly rhythm: a Chart.
  • A short row of days with a status each, like uptime: a Tracker.

API reference

ActivityHeatmap

Activity per day, a column per week, like deploys or signups over a year. Point at a day, or arrow to it, to read it; drag across days to choose a range. Levels follow the spread of the days, so one busy launch day does not turn the rest of the year pale.

Prop

Type

Also takes every <figure> attribute. Style it with [data-slot="activity-heatmap"].

On this page