Skip to content
DocsChartsHeatmapLast updated Nov 2, 2026

Heatmap

Two dimensions, shaded by value. Sample data: card transactions by weekday and hour over 7 days, the busiest cells at 398 and 412.

Open in
Card transactions by hourCard transactions this week by weekday and 2-hour slot, as a share of the busiest slot: Friday 18:00 with 412 transactions, then Friday 16:00 with 398; the quietest slots are 00:00 to 04:00.MONTUEWEDTHUFRI398412SATSUN00:0006:0012:0018:0022:00LOWHIGH
Card transactions by hour
Day00:0002:0004:0006:0008:0010:0012:0014:0016:0018:0020:0022:00
Mon4%3%9%30%49%63%70%72%91%62%37%14%
Tue4%3%9%32%53%63%78%70%83%61%37%15%
Wed5%3%9%31%54%69%72%80%91%62%40%14%
Thu5%3%10%33%57%74%83%79%94%63%39%14%
Fri5%3%10%37%54%78%72%82%97%100%43%14%
Sat4%2%7%24%38%56%59%63%70%52%29%10%
Sun2%1%4%15%30%35%41%42%48%32%21%7%
Card transactions by hourCard transactions this week by weekday and 2-hour slot, as a share of the busiest slot: Friday 18:00 with 412 transactions, then Friday 16:00 with 398; the quietest slots are 00:00 to 04:00.MONTUEWEDTHUFRI398412SATSUN00:0006:0012:0022:00LOWHIGH
Card transactions by hour
Day00:0002:0004:0006:0008:0010:0012:0014:0016:0018:0020:0022:00
Mon4%3%9%30%49%63%70%72%91%62%37%14%
Tue4%3%9%32%53%63%78%70%83%61%37%15%
Wed5%3%9%31%54%69%72%80%91%62%40%14%
Thu5%3%10%33%57%74%83%79%94%63%39%14%
Fri5%3%10%37%54%78%72%82%97%100%43%14%
Sat4%2%7%24%38%56%59%63%70%52%29%10%
Sun2%1%4%15%30%35%41%42%48%32%21%7%

Installation

  1. 1

    Set up the registry once

    This chart is free in Hearth and MIT licensed: no token. Add @chartory to components.json once (the URL alone, no headers), or skip this when another chart is already installed.

    Installation guide
  2. 2

    Add the chart

    One command adds the Heatmap component to your project.

    npx shadcn add @chartory/heatmap
  3. 3

    Use it

    Pass your rows. The props are the Figma properties.

    usage.tsx
    import { Heatmap }  from "@/components/chartory/heatmap"<Heatmap  data={cardTransactions}  size="m"  legend/>

Props

<Heatmap>

Every prop but data is a Figma property with the same name and values.

PropTypeDefault
data: The chart's data. The tables below list every field.HeatmapDataRequired
size: The size class. Each one is laid out again from the data."xs" | "s" | "m" | "l""m"
legend: Shows the legend row under the plot.booleantrue

HeatmapData

The data prop: one object for the whole chart.

PropTypeDefault
rows: The row labels, in order.string[]Required
cols: The column labels, in order.string[]Required
xl: The x axis labels, by index.Record<number, string>Required
vals: The values, in order.number[][]Required
marks?: The marks, by key.Record<string, string>—
yW?: The width of the y axis label column, in px.number36
gap?: The gap between cells, in px.number3

The data as a JSON Schema: schemas/heatmap.json

Heatmap: a React and Figma chart in four sizes

What does a heatmap show?

A heatmap lays out a grid of two dimensions, such as weekday and hour, and shades each cell by its value, so busy and quiet patches show at once. Use it for transactions by hour, tickets by team and day, or any count across two axes.

Chartory ships it as a Figma component and a React component with the same name. The code installs from the shadcn registry with one command and lands in your project as a file you own.

What is the Heatmap component?

It is one <Heatmap> component. Its props are the Figma properties with the same names and values, and the props table above lists them. The data is a value per cell of two dimensions.

Sizes XS, S, M and L re-lay the chart out from the data instead of scaling it, so labels stay readable at every size.

When should I use it?

  • Are there two dimensions? Yes means the heatmap fits.
  • Is the grid rectangular? Yes means the heatmap fits.
  • Is shading enough? Yes means the heatmap fits.

When does another type fit better?

  • One value per day. Use Calendar heatmap instead.
  • Hours around a clock. Use Radial hour heatmap instead.
  • Sized dots per cell. Use Punch card instead.

Heatmap questions

Installing, data, Figma and plans.

  • Yes. It installs through the shadcn registry with the shadcn CLI, and the file lands in your project.

Stay in the loop

New charts, by email.

Get an email when new chart types and releases ship.

Unsubscribe any time.