Search documentation

Search pages, components, blocks, styles and colours.

Get started
Skip to content

Heat Calendar

PreviousNext

A value per day over months, as a grid of weeks by weekdays in five levels of one colour.

Deploys
Acme Inc, the last 52 weeks
Nov 17, 2025 – Nov 15, 2026
Deploys per day
Value
Mon, Nov 17, 202512 deploys
Tue, Nov 18, 20251 deploy
Wed, Nov 19, 20254 deploys
Thu, Nov 20, 20258 deploys
Fri, Nov 21, 20254 deploys
Sat, Nov 22, 20250 deploys
Sun, Nov 23, 20250 deploys
Mon, Nov 24, 20251 deploy
Tue, Nov 25, 20257 deploys
Wed, Nov 26, 20250 deploys
Thu, Nov 27, 20253 deploys
Fri, Nov 28, 20250 deploys
Sat, Nov 29, 20250 deploys
Sun, Nov 30, 20251 deploy
Mon, Dec 1, 20250 deploys
Tue, Dec 2, 20256 deploys
Wed, Dec 3, 202512 deploys
Thu, Dec 4, 20250 deploys
Fri, Dec 5, 20252 deploys
Sat, Dec 6, 20250 deploys
Sun, Dec 7, 20250 deploys
Mon, Dec 8, 20251 deploy
Tue, Dec 9, 20251 deploy
Wed, Dec 10, 20250 deploys
Thu, Dec 11, 20257 deploys
Fri, Dec 12, 20250 deploys
Sat, Dec 13, 20250 deploys
Sun, Dec 14, 20250 deploys
Mon, Dec 15, 20252 deploys
Tue, Dec 16, 202512 deploys
Wed, Dec 17, 20252 deploys
Thu, Dec 18, 20256 deploys
Fri, Dec 19, 20250 deploys
Sat, Dec 20, 20250 deploys
Sun, Dec 21, 20251 deploy
Mon, Dec 22, 20252 deploys
Tue, Dec 23, 20250 deploys
Wed, Dec 24, 20250 deploys
Thu, Dec 25, 20250 deploys
Fri, Dec 26, 20250 deploys
Sat, Dec 27, 20250 deploys
Sun, Dec 28, 20250 deploys
Mon, Dec 29, 20250 deploys
Tue, Dec 30, 20250 deploys
Wed, Dec 31, 20250 deploys
Thu, Jan 1, 20260 deploys
Fri, Jan 2, 20260 deploys
Sat, Jan 3, 20260 deploys
Sun, Jan 4, 20260 deploys
Mon, Jan 5, 20260 deploys
Tue, Jan 6, 20267 deploys
Wed, Jan 7, 20265 deploys
Thu, Jan 8, 20262 deploys
Fri, Jan 9, 20269 deploys
Sat, Jan 10, 20260 deploys
Sun, Jan 11, 20263 deploys
Mon, Jan 12, 20262 deploys
Tue, Jan 13, 20260 deploys
Wed, Jan 14, 20260 deploys
Thu, Jan 15, 20266 deploys
Fri, Jan 16, 20263 deploys
Sat, Jan 17, 20260 deploys
Sun, Jan 18, 20263 deploys
Mon, Jan 19, 20260 deploys
Tue, Jan 20, 20260 deploys
Wed, Jan 21, 20260 deploys
Thu, Jan 22, 20260 deploys
Fri, Jan 23, 20261 deploy
Sat, Jan 24, 20260 deploys
Sun, Jan 25, 20260 deploys
Mon, Jan 26, 20261 deploy
Tue, Jan 27, 20263 deploys
Wed, Jan 28, 20261 deploy
Thu, Jan 29, 20260 deploys
Fri, Jan 30, 20262 deploys
Sat, Jan 31, 20260 deploys
Sun, Feb 1, 20261 deploy
Mon, Feb 2, 202612 deploys
Tue, Feb 3, 202612 deploys
Wed, Feb 4, 202611 deploys
Thu, Feb 5, 202613 deploys
Fri, Feb 6, 20266 deploys
Sat, Feb 7, 20260 deploys
Sun, Feb 8, 20260 deploys
Mon, Feb 9, 20260 deploys
Tue, Feb 10, 20267 deploys
Wed, Feb 11, 20263 deploys
Thu, Feb 12, 20260 deploys
Fri, Feb 13, 20260 deploys
Sat, Feb 14, 20262 deploys
Sun, Feb 15, 20260 deploys
Mon, Feb 16, 202611 deploys
Tue, Feb 17, 20260 deploys
Wed, Feb 18, 20260 deploys
Thu, Feb 19, 20260 deploys
Fri, Feb 20, 20262 deploys
Sat, Feb 21, 20262 deploys
Sun, Feb 22, 20260 deploys
Mon, Feb 23, 20261 deploy
Tue, Feb 24, 202611 deploys
Wed, Feb 25, 20262 deploys
Thu, Feb 26, 20268 deploys
Fri, Feb 27, 20267 deploys
Sat, Feb 28, 20260 deploys
Sun, Mar 1, 20260 deploys
Mon, Mar 2, 20260 deploys
Tue, Mar 3, 20260 deploys
Wed, Mar 4, 202611 deploys
Thu, Mar 5, 20260 deploys
Fri, Mar 6, 20266 deploys
Sat, Mar 7, 20261 deploy
Sun, Mar 8, 20260 deploys
Mon, Mar 9, 202613 deploys
Tue, Mar 10, 20260 deploys
Wed, Mar 11, 20260 deploys
Thu, Mar 12, 20264 deploys
Fri, Mar 13, 20264 deploys
Sat, Mar 14, 20260 deploys
Sun, Mar 15, 20260 deploys
Mon, Mar 16, 20260 deploys
Tue, Mar 17, 20264 deploys
Wed, Mar 18, 20267 deploys
Thu, Mar 19, 20261 deploy
Fri, Mar 20, 20263 deploys
Sat, Mar 21, 20262 deploys
Sun, Mar 22, 20260 deploys
Mon, Mar 23, 20260 deploys
Tue, Mar 24, 20260 deploys
Wed, Mar 25, 202613 deploys
Thu, Mar 26, 20268 deploys
Fri, Mar 27, 20267 deploys
Sat, Mar 28, 20260 deploys
Sun, Mar 29, 20260 deploys
Mon, Mar 30, 20260 deploys
Tue, Mar 31, 20260 deploys
Wed, Apr 1, 202613 deploys
Thu, Apr 2, 20260 deploys
Fri, Apr 3, 20266 deploys
Sat, Apr 4, 20261 deploy
Sun, Apr 5, 20260 deploys
Mon, Apr 6, 20266 deploys
Tue, Apr 7, 20262 deploys
Wed, Apr 8, 20260 deploys
Thu, Apr 9, 20269 deploys
Fri, Apr 10, 20260 deploys
Sat, Apr 11, 20263 deploys
Sun, Apr 12, 20260 deploys
Mon, Apr 13, 20261 deploy
Tue, Apr 14, 20260 deploys
Wed, Apr 15, 20261 deploy
Thu, Apr 16, 20264 deploys
Fri, Apr 17, 202614 deploys
Sat, Apr 18, 20261 deploy
Sun, Apr 19, 20260 deploys
Mon, Apr 20, 20260 deploys
Tue, Apr 21, 20260 deploys
Wed, Apr 22, 202612 deploys
Thu, Apr 23, 20268 deploys
Fri, Apr 24, 202610 deploys
Sat, Apr 25, 20260 deploys
Sun, Apr 26, 20260 deploys
Mon, Apr 27, 20265 deploys
Tue, Apr 28, 20262 deploys
Wed, Apr 29, 20263 deploys
Thu, Apr 30, 20267 deploys
Fri, May 1, 20266 deploys
Sat, May 2, 20260 deploys
Sun, May 3, 20260 deploys
Mon, May 4, 202614 deploys
Tue, May 5, 20263 deploys
Wed, May 6, 20260 deploys
Thu, May 7, 20260 deploys
Fri, May 8, 20260 deploys
Sat, May 9, 20260 deploys
Sun, May 10, 20260 deploys
Mon, May 11, 20268 deploys
Tue, May 12, 20260 deploys
Wed, May 13, 20261 deploy
Thu, May 14, 20269 deploys
Fri, May 15, 202612 deploys
Sat, May 16, 20260 deploys
Sun, May 17, 20260 deploys
Mon, May 18, 20264 deploys
Tue, May 19, 202611 deploys
Wed, May 20, 202611 deploys
Thu, May 21, 20267 deploys
Fri, May 22, 20262 deploys
Sat, May 23, 20261 deploy
Sun, May 24, 20263 deploys
Mon, May 25, 20262 deploys
Tue, May 26, 202611 deploys
Wed, May 27, 20261 deploy
Thu, May 28, 20260 deploys
Fri, May 29, 20260 deploys
Sat, May 30, 20260 deploys
Sun, May 31, 20262 deploys
Mon, Jun 1, 20260 deploys
Tue, Jun 2, 20261 deploy
Wed, Jun 3, 20260 deploys
Thu, Jun 4, 20260 deploys
Fri, Jun 5, 20265 deploys
Sat, Jun 6, 20263 deploys
Sun, Jun 7, 20260 deploys
Mon, Jun 8, 20260 deploys
Tue, Jun 9, 20267 deploys
Wed, Jun 10, 20260 deploys
Thu, Jun 11, 20265 deploys
Fri, Jun 12, 20267 deploys
Sat, Jun 13, 20260 deploys
Sun, Jun 14, 20260 deploys
Mon, Jun 15, 20260 deploys
Tue, Jun 16, 20261 deploy
Wed, Jun 17, 20261 deploy
Thu, Jun 18, 20265 deploys
Fri, Jun 19, 20269 deploys
Sat, Jun 20, 20263 deploys
Sun, Jun 21, 20262 deploys
Mon, Jun 22, 20269 deploys
Tue, Jun 23, 20269 deploys
Wed, Jun 24, 202612 deploys
Thu, Jun 25, 20269 deploys
Fri, Jun 26, 202611 deploys
Sat, Jun 27, 20260 deploys
Sun, Jun 28, 20260 deploys
Mon, Jun 29, 20260 deploys
Tue, Jun 30, 20260 deploys
Wed, Jul 1, 20267 deploys
Thu, Jul 2, 20260 deploys
Fri, Jul 3, 20260 deploys
Sat, Jul 4, 20260 deploys
Sun, Jul 5, 20260 deploys
Mon, Jul 6, 202612 deploys
Tue, Jul 7, 20260 deploys
Wed, Jul 8, 20260 deploys
Thu, Jul 9, 20261 deploy
Fri, Jul 10, 20263 deploys
Sat, Jul 11, 20260 deploys
Sun, Jul 12, 20260 deploys
Mon, Jul 13, 20261 deploy
Tue, Jul 14, 20260 deploys
Wed, Jul 15, 20266 deploys
Thu, Jul 16, 20269 deploys
Fri, Jul 17, 20264 deploys
Sat, Jul 18, 20260 deploys
Sun, Jul 19, 20260 deploys
Mon, Jul 20, 202613 deploys
Tue, Jul 21, 202613 deploys
Wed, Jul 22, 20265 deploys
Thu, Jul 23, 20260 deploys
Fri, Jul 24, 20267 deploys
Sat, Jul 25, 20260 deploys
Sun, Jul 26, 20260 deploys
Mon, Jul 27, 20262 deploys
Tue, Jul 28, 20260 deploys
Wed, Jul 29, 20260 deploys
Thu, Jul 30, 20262 deploys
Fri, Jul 31, 20266 deploys
Sat, Aug 1, 20260 deploys
Sun, Aug 2, 20263 deploys
Mon, Aug 3, 20260 deploys
Tue, Aug 4, 20268 deploys
Wed, Aug 5, 20262 deploys
Thu, Aug 6, 20260 deploys
Fri, Aug 7, 20260 deploys
Sat, Aug 8, 20260 deploys
Sun, Aug 9, 20262 deploys
Mon, Aug 10, 20260 deploys
Tue, Aug 11, 20268 deploys
Wed, Aug 12, 20261 deploy
Thu, Aug 13, 20260 deploys
Fri, Aug 14, 20261 deploy
Sat, Aug 15, 20260 deploys
Sun, Aug 16, 20260 deploys
Mon, Aug 17, 202611 deploys
Tue, Aug 18, 20260 deploys
Wed, Aug 19, 20263 deploys
Thu, Aug 20, 20260 deploys
Fri, Aug 21, 20269 deploys
Sat, Aug 22, 20260 deploys
Sun, Aug 23, 20260 deploys
Mon, Aug 24, 20261 deploy
Tue, Aug 25, 20261 deploy
Wed, Aug 26, 20260 deploys
Thu, Aug 27, 202610 deploys
Fri, Aug 28, 20269 deploys
Sat, Aug 29, 20260 deploys
Sun, Aug 30, 20260 deploys
Mon, Aug 31, 20260 deploys
Tue, Sep 1, 20261 deploy
Wed, Sep 2, 20265 deploys
Thu, Sep 3, 20266 deploys
Fri, Sep 4, 20260 deploys
Sat, Sep 5, 20260 deploys
Sun, Sep 6, 20260 deploys
Mon, Sep 7, 20264 deploys
Tue, Sep 8, 20262 deploys
Wed, Sep 9, 20268 deploys
Thu, Sep 10, 20262 deploys
Fri, Sep 11, 20261 deploy
Sat, Sep 12, 20260 deploys
Sun, Sep 13, 20260 deploys
Mon, Sep 14, 20261 deploy
Tue, Sep 15, 20264 deploys
Wed, Sep 16, 20260 deploys
Thu, Sep 17, 20261 deploy
Fri, Sep 18, 20265 deploys
Sat, Sep 19, 20260 deploys
Sun, Sep 20, 20260 deploys
Mon, Sep 21, 20261 deploy
Tue, Sep 22, 20262 deploys
Wed, Sep 23, 202611 deploys
Thu, Sep 24, 20262 deploys
Fri, Sep 25, 20262 deploys
Sat, Sep 26, 20260 deploys
Sun, Sep 27, 20261 deploy
Mon, Sep 28, 20260 deploys
Tue, Sep 29, 20262 deploys
Wed, Sep 30, 20260 deploys
Thu, Oct 1, 20261 deploy
Fri, Oct 2, 20260 deploys
Sat, Oct 3, 20261 deploy
Sun, Oct 4, 20261 deploy
Mon, Oct 5, 20268 deploys
Tue, Oct 6, 20263 deploys
Wed, Oct 7, 20260 deploys
Thu, Oct 8, 20260 deploys
Fri, Oct 9, 20268 deploys
Sat, Oct 10, 20260 deploys
Sun, Oct 11, 20260 deploys
Mon, Oct 12, 20260 deploys
Tue, Oct 13, 202614 deploys
Wed, Oct 14, 20260 deploys
Thu, Oct 15, 202610 deploys
Fri, Oct 16, 20260 deploys
Sat, Oct 17, 20260 deploys
Sun, Oct 18, 20260 deploys
Mon, Oct 19, 20264 deploys
Tue, Oct 20, 20260 deploys
Wed, Oct 21, 20267 deploys
Thu, Oct 22, 202613 deploys
Fri, Oct 23, 20260 deploys
Sat, Oct 24, 20260 deploys
Sun, Oct 25, 20260 deploys
Mon, Oct 26, 20267 deploys
Tue, Oct 27, 20260 deploys
Wed, Oct 28, 202613 deploys
Thu, Oct 29, 20266 deploys
Fri, Oct 30, 20261 deploy
Sat, Oct 31, 20260 deploys
Sun, Nov 1, 20260 deploys
Mon, Nov 2, 20260 deploys
Tue, Nov 3, 20260 deploys
Wed, Nov 4, 202613 deploys
Thu, Nov 5, 20268 deploys
Fri, Nov 6, 20260 deploys
Sat, Nov 7, 20260 deploys
Sun, Nov 8, 20260 deploys
Mon, Nov 9, 20261 deploy
Tue, Nov 10, 20263 deploys
Wed, Nov 11, 20265 deploys
Thu, Nov 12, 202610 deploys
Fri, Nov 13, 20261 deploy
Sat, Nov 14, 20260 deploys
Sun, Nov 15, 20260 deploys

Give it rows with a day and a value. Each week is a column and each weekday a row, and each day takes one of five levels: level 0 for a day with no data or nothing in it, then four levels that split the other days at their quartiles, painted in one colour from faint to full. Month names run along the top, Mon, Wed and Fri down the start edge, and under the grid sit the range and a key from less to more.

Point at a day, tap it or tab to the grid and use the arrow keys: the day lifts and a tooltip reads its value ("12 on Tue, Nov 3"). Cells fade in as a diagonal wave from the first week the first time the calendar is on screen, and each day eases to its new level when the data changes.

Heat Calendar is part of the Fabricator style. It's drawn in SVG, so the same component ships for every base, and its layout comes from the same model as the React Native version.

Installation

bunx --bun fabricator-ui@latest add heat-calendar

Usage

import { HeatCalendar } from "@/components/ui/heat-calendar"
const data = [
  { date: "2026-11-02", value: 3 },
  { date: "2026-11-03", value: 12 },
  { date: "2026-11-04", value: 0 },
]
 
<HeatCalendar data={data} label="Deploys per day" />

Each row's day is read from dateKey ("date" by default) as an ISO date string or a Date, and its value from valueKey ("value"). Rows on the same day add up. Days are calendar days in UTC, so "2026-11-03" lands on the 3rd for every reader and a page rendered on a server matches the browser. Pass days as yyyy-MM-dd strings, or Dates at midnight UTC.

Without a range, the calendar shows the 52 weeks ending at the latest day in the data. The chart fills its container's width: cells are square, 3px apart, and as large as the width allows between 8px and 16px. When even 8px cells don't fit, the grid scrolls sideways and opens on the latest week, with the weekday names staying put.

formatValue writes each value in the tooltip and the hidden table. Since the table renders on the server, use a formatter that writes the same text in Node and in the browser, such as a template string or formatChartNumber from lib/chart-model.

Examples

A range of weeks

range sets the first and last day to draw, and weekStartsOn={0} starts each column on Sunday. thresholds fixes the levels: the most a day can hold and still be level 1, 2 and 3, with anything above the third at level 4. color picks the colour.

Jul 27 – Nov 15
Support replies per day
Value
Mon, Jul 27, 20260
Tue, Jul 28, 20264
Wed, Jul 29, 20262
Thu, Jul 30, 20260
Fri, Jul 31, 202610
Sat, Aug 1, 20261
Sun, Aug 2, 20261
Mon, Aug 3, 20264
Tue, Aug 4, 20264
Wed, Aug 5, 20262
Thu, Aug 6, 20261
Fri, Aug 7, 20268
Sat, Aug 8, 20260
Sun, Aug 9, 20261
Mon, Aug 10, 20266
Tue, Aug 11, 202610
Wed, Aug 12, 20263
Thu, Aug 13, 20260
Fri, Aug 14, 20261
Sat, Aug 15, 20261
Sun, Aug 16, 20261
Mon, Aug 17, 20265
Tue, Aug 18, 20264
Wed, Aug 19, 20261
Thu, Aug 20, 20262
Fri, Aug 21, 20269
Sat, Aug 22, 20260
Sun, Aug 23, 20260
Mon, Aug 24, 20265
Tue, Aug 25, 20268
Wed, Aug 26, 20260
Thu, Aug 27, 20263
Fri, Aug 28, 202611
Sat, Aug 29, 20261
Sun, Aug 30, 20260
Mon, Aug 31, 20266
Tue, Sep 1, 202612
Wed, Sep 2, 20262
Thu, Sep 3, 202611
Fri, Sep 4, 20260
Sat, Sep 5, 20261
Sun, Sep 6, 20262
Mon, Sep 7, 202612
Tue, Sep 8, 20262
Wed, Sep 9, 20261
Thu, Sep 10, 20269
Fri, Sep 11, 202612
Sat, Sep 12, 20261
Sun, Sep 13, 20262
Mon, Sep 14, 20269
Tue, Sep 15, 20263
Wed, Sep 16, 20261
Thu, Sep 17, 20266
Fri, Sep 18, 20260
Sat, Sep 19, 20262
Sun, Sep 20, 20262
Mon, Sep 21, 20262
Tue, Sep 22, 202610
Wed, Sep 23, 20260
Thu, Sep 24, 20267
Fri, Sep 25, 202612
Sat, Sep 26, 20261
Sun, Sep 27, 20261
Mon, Sep 28, 20264
Tue, Sep 29, 202610
Wed, Sep 30, 20263
Thu, Oct 1, 202612
Fri, Oct 2, 202613
Sat, Oct 3, 20261
Sun, Oct 4, 20262
Mon, Oct 5, 20264
Tue, Oct 6, 20261
Wed, Oct 7, 20260
Thu, Oct 8, 20260
Fri, Oct 9, 202610
Sat, Oct 10, 20260
Sun, Oct 11, 20261
Mon, Oct 12, 20265
Tue, Oct 13, 20263
Wed, Oct 14, 20264
Thu, Oct 15, 20260
Fri, Oct 16, 20263
Sat, Oct 17, 20260
Sun, Oct 18, 20261
Mon, Oct 19, 20265
Tue, Oct 20, 202611
Wed, Oct 21, 20260
Thu, Oct 22, 202613
Fri, Oct 23, 202613
Sat, Oct 24, 20262
Sun, Oct 25, 20261
Mon, Oct 26, 20263
Tue, Oct 27, 202610
Wed, Oct 28, 20266
Thu, Oct 29, 20264
Fri, Oct 30, 20262
Sat, Oct 31, 20261
Sun, Nov 1, 20261
Mon, Nov 2, 202612
Tue, Nov 3, 20265
Wed, Nov 4, 202611
Thu, Nov 5, 20261
Fri, Nov 6, 20261
Sat, Nov 7, 20262
Sun, Nov 8, 20261
Mon, Nov 9, 20262
Tue, Nov 10, 202610
Wed, Nov 11, 20263
Thu, Nov 12, 202611
Fri, Nov 13, 20264
Sat, Nov 14, 20261
Sun, Nov 15, 20260

Following the inspected day

onActiveChange reports the day under the pointer, the finger or the keyboard, with its date, its value and its first row, and null when there is none. Switching the data eases each day to its new level.

344 commitsIn the last 12 weeks
Aug 24 – Nov 15
Commits per day
Value
Mon, Aug 24, 20260 commits
Tue, Aug 25, 20268 commits
Wed, Aug 26, 20267 commits
Thu, Aug 27, 20262 commits
Fri, Aug 28, 20263 commits
Sat, Aug 29, 20263 commits
Sun, Aug 30, 20261 commit
Mon, Aug 31, 20261 commit
Tue, Sep 1, 20262 commits
Wed, Sep 2, 20263 commits
Thu, Sep 3, 202611 commits
Fri, Sep 4, 20260 commits
Sat, Sep 5, 20263 commits
Sun, Sep 6, 20262 commits
Mon, Sep 7, 20262 commits
Tue, Sep 8, 20264 commits
Wed, Sep 9, 20260 commits
Thu, Sep 10, 20265 commits
Fri, Sep 11, 20262 commits
Sat, Sep 12, 20262 commits
Sun, Sep 13, 20262 commits
Mon, Sep 14, 20261 commit
Tue, Sep 15, 202611 commits
Wed, Sep 16, 20262 commits
Thu, Sep 17, 20266 commits
Fri, Sep 18, 20262 commits
Sat, Sep 19, 20260 commits
Sun, Sep 20, 20261 commit
Mon, Sep 21, 20263 commits
Tue, Sep 22, 20269 commits
Wed, Sep 23, 20261 commit
Thu, Sep 24, 20269 commits
Fri, Sep 25, 20264 commits
Sat, Sep 26, 20261 commit
Sun, Sep 27, 20261 commit
Mon, Sep 28, 20265 commits
Tue, Sep 29, 20266 commits
Wed, Sep 30, 202611 commits
Thu, Oct 1, 20263 commits
Fri, Oct 2, 20268 commits
Sat, Oct 3, 20261 commit
Sun, Oct 4, 20263 commits
Mon, Oct 5, 20263 commits
Tue, Oct 6, 20267 commits
Wed, Oct 7, 20267 commits
Thu, Oct 8, 20269 commits
Fri, Oct 9, 20261 commit
Sat, Oct 10, 20260 commits
Sun, Oct 11, 20261 commit
Mon, Oct 12, 20263 commits
Tue, Oct 13, 20267 commits
Wed, Oct 14, 202612 commits
Thu, Oct 15, 20261 commit
Fri, Oct 16, 20268 commits
Sat, Oct 17, 20263 commits
Sun, Oct 18, 20260 commits
Mon, Oct 19, 20260 commits
Tue, Oct 20, 20263 commits
Wed, Oct 21, 20267 commits
Thu, Oct 22, 20264 commits
Fri, Oct 23, 20268 commits
Sat, Oct 24, 20260 commits
Sun, Oct 25, 20260 commits
Mon, Oct 26, 20267 commits
Tue, Oct 27, 20268 commits
Wed, Oct 28, 20268 commits
Thu, Oct 29, 20261 commit
Fri, Oct 30, 20269 commits
Sat, Oct 31, 20261 commit
Sun, Nov 1, 20262 commits
Mon, Nov 2, 20264 commits
Tue, Nov 3, 20260 commits
Wed, Nov 4, 20261 commit
Thu, Nov 5, 20267 commits
Fri, Nov 6, 202610 commits
Sat, Nov 7, 20261 commit
Sun, Nov 8, 20260 commits
Mon, Nov 9, 20268 commits
Tue, Nov 10, 202611 commits
Wed, Nov 11, 20265 commits
Thu, Nov 12, 202611 commits
Fri, Nov 13, 202611 commits
Sat, Nov 14, 20262 commits
Sun, Nov 15, 20262 commits

Colours

Every level is one colour over the empty cell, so the levels read as more and less of the same thing. The colour is the first slot of the chart palette unless you pass color: a palette slot, an upstream chart token (chart-1 … chart-5), a role (primary, success, …), a CSS variable or any CSS colour.

LevelWhat it holdsOpacity over the empty cell
0no data, zero or lessnone: the empty cell
1up to the first threshold45%
2up to the second threshold62%
3up to the third threshold80%
4above the third threshold100%

The empty cell is the text colour at 8%, so it reads as a place in the grid on any surface. Level 1 keeps 2:1 or more against the card in light and dark, so it stays clearly apart from an empty day. The levels are opacity steps, so they look the same on React Native.

Motion

  • Draw-in: the first time the calendar scrolls into view, cells fade and grow in as a diagonal wave from the first week, on the reveal role, once per mount.
  • Morph: when data, dateKey, valueKey, range, weekStartsOn, thresholds or color change, each day eases to its new level on the move role. Days entering the range fade in; days leaving it fade out.
  • Glide: the lifted day and the tooltip glide from day to day on the glide role.

All three follow the motion speed of the region they sit in. Reduce Motion and the instant speed draw the calendar at once and drop the glide; animate={false} does the same for one calendar.

API Reference

HeatCalendar

All other props go to the root <div>.

PropTypeDefault
dataTDatum[]required
labelstringrequired: the accessible name
dateKeystring"date"
valueKeystring"value"
range{ start: Date | string; end: Date | string }the 52 weeks ending at the latest day
weekStartsOn0 | 11 (Monday)
thresholdsnumber[]the quartiles of the non-zero values
colorChartColor"chart-series-1"
formatValue(value: number, key: string) => string1,234
legendbooleantrue: the "Less … More" key
tooltipbooleantrue
animatebooleantrue
loadingbooleanfalse
emptyReactNode"No data"
onActiveChange(active: HeatCalendarActive<TDatum> | null) => void-

HeatCalendarActive

FieldTypeWhat
indexnumberthe day's place in the range
datestringthe day as yyyy-MM-dd
valuenumber | nullthe day's total, null with none
datumTDatumthe day's first row, if any

Data attributes

AttributeElementPresent when
data-slot="heat-calendar"rootalways
data-loadingrootloading is true
data-slot="chart-plot"the plotalways; data-empty with no day
data-slot="heat-calendar-cell"a dayalways; data-level is 0 to 4
data-slot="heat-calendar-lift"the lifted daya day is inspected
data-slot="heat-calendar-key"the keylegend is on
data-slot="chart-tooltip"the tooltipa day is inspected

Accessibility

  • The grid is a slider named after label ("Deploys per day: inspect values"). Tab to it, then Up and Down step a day, Left and Right a week, Home and End jump to the first and last day, and Escape lets go. Its value text reads the tooltip. A day the keyboard reaches off screen scrolls into view.
  • Every day is also in a table hidden from sight, with its full date and value, so a screen reader can read the data without inspecting it.
  • Levels differ in lightness, and the tooltip and the table always give the number.
  • loading sets aria-busy on the root and dims the last drawing until new data arrives.