Skip to content
caliper ui pro docs

Heatmap matrix

Two categories against each other, coloured by value. The row and column follow the pointer or arrow keys, and choosing a step of the scale isolates its cells.

Pro
Tickets by weekday and hour (UTC)
000204060810121416182022
Mon
Tue
Wed
Thu
Fri
Sat
Sun
1 tickets
47 tickets

When to use

  • Weekday by hour, feature by plan, error by service.
  • Spotting the busy or broken corner of a grid.

When not to use

  • Calendar days over a year; use the activity heatmap.
  • Exact comparisons; colour is approximate, so keep the table.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/heatmap-matrix

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

bucketOf

0 props

No props of its own; it accepts the native props of its root element.

HeatmapMatrix

10 props
PropTypeDefaultDescription
label *string—
rows *readonly string[]—
columns *readonly string[]—
values *readonly (readonly (number | undefined)[])[]—values[row][column]; undefined means no reading.
unitstring""
formatValue((value: number) => string)numberText
stepsnumber5
loadingboolean—
errorstring—
classNamestring—

Keyboard

→
Moves to the next item or value.
←
Moves to the previous item or value.
↓
Moves to the next item or value.
↑
Moves to the previous item or value.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.
Escape
Closes or cancels, then returns focus to where it came from.

Accessibility

It exposes grid, row, columnheader, rowheader, gridcell and group semantics, with aria-label, aria-busy and aria-pressed kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/heatmap-matrix.md

The index of every part is at /llms.txt.

More in Distribution charts