Heatmap
ProHeatmap for values across two dimensions: a weekday × hour matrix, a contribution calendar, a punch card, labelled cells and a correlation matrix.
Playground
Sessions by hour
| Row · column | Value |
|---|---|
| Mon · 0:00 | 6 |
| Mon · 1:00 | 2 |
| Mon · 2:00 | 8 |
| Mon · 3:00 | 4 |
| Mon · 4:00 | 4 |
| Mon · 5:00 | 6 |
| Mon · 6:00 | 10 |
| Mon · 7:00 | 20 |
| Mon · 8:00 | 27 |
| Mon · 9:00 | 43 |
| Mon · 10:00 | 50 |
| Mon · 11:00 | 66 |
| Mon · 12:00 | 78 |
| Mon · 13:00 | 80 |
| Mon · 14:00 | 87 |
| Mon · 15:00 | 82 |
| Mon · 16:00 | 72 |
| Mon · 17:00 | 66 |
| Mon · 18:00 | 48 |
| Mon · 19:00 | 35 |
| Mon · 20:00 | 32 |
| Mon · 21:00 | 16 |
| Mon · 22:00 | 16 |
| Mon · 23:00 | 11 |
| Tue · 0:00 | 4 |
| Tue · 1:00 | 1 |
| Tue · 2:00 | 6 |
| Tue · 3:00 | 4 |
| Tue · 4:00 | 10 |
| Tue · 5:00 | 12 |
| Tue · 6:00 | 14 |
| Tue · 7:00 | 16 |
| Tue · 8:00 | 27 |
| Tue · 9:00 | 39 |
| Tue · 10:00 | 50 |
| Tue · 11:00 | 67 |
| Tue · 12:00 | 75 |
| Tue · 13:00 | 83 |
| Tue · 14:00 | 82 |
| Tue · 15:00 | 85 |
| Tue · 16:00 | 72 |
| Tue · 17:00 | 64 |
| Tue · 18:00 | 55 |
| Tue · 19:00 | 42 |
| Tue · 20:00 | 33 |
| Tue · 21:00 | 18 |
| Tue · 22:00 | 15 |
| Tue · 23:00 | 11 |
| Wed · 0:00 | 7 |
| Wed · 1:00 | 5 |
| Wed · 2:00 | 8 |
| Wed · 3:00 | 7 |
| Wed · 4:00 | 10 |
| Wed · 5:00 | 11 |
| Wed · 6:00 | 11 |
| Wed · 7:00 | 22 |
| Wed · 8:00 | 31 |
| Wed · 9:00 | 39 |
| Wed · 10:00 | 52 |
| Wed · 11:00 | 61 |
| Wed · 12:00 | 74 |
| Wed · 13:00 | 78 |
| Wed · 14:00 | 87 |
| Wed · 15:00 | 81 |
| Wed · 16:00 | 75 |
| Wed · 17:00 | 63 |
| Wed · 18:00 | 54 |
| Wed · 19:00 | 40 |
| Wed · 20:00 | 25 |
| Wed · 21:00 | 24 |
| Wed · 22:00 | 12 |
| Wed · 23:00 | 8 |
| Thu · 0:00 | 6 |
| Thu · 1:00 | 1 |
| Thu · 2:00 | 3 |
| Thu · 3:00 | 4 |
| Thu · 4:00 | 3 |
| Thu · 5:00 | 14 |
| Thu · 6:00 | 18 |
| Thu · 7:00 | 20 |
| Thu · 8:00 | 30 |
| Thu · 9:00 | 41 |
| Thu · 10:00 | 51 |
| Thu · 11:00 | 62 |
| Thu · 12:00 | 72 |
| Thu · 13:00 | 85 |
| Thu · 14:00 | 86 |
| Thu · 15:00 | 83 |
| Thu · 16:00 | 78 |
| Thu · 17:00 | 68 |
| Thu · 18:00 | 48 |
| Thu · 19:00 | 35 |
| Thu · 20:00 | 32 |
| Thu · 21:00 | 16 |
| Thu · 22:00 | 15 |
| Thu · 23:00 | 13 |
| Fri · 0:00 | 6 |
| Fri · 1:00 | 2 |
| Fri · 2:00 | 5 |
| Fri · 3:00 | 4 |
| Fri · 4:00 | 5 |
| Fri · 5:00 | 8 |
| Fri · 6:00 | 16 |
| Fri · 7:00 | 19 |
| Fri · 8:00 | 29 |
| Fri · 9:00 | 41 |
| Fri · 10:00 | 51 |
| Fri · 11:00 | 61 |
| Fri · 12:00 | 77 |
| Fri · 13:00 | 82 |
| Fri · 14:00 | 82 |
| Fri · 15:00 | 80 |
| Fri · 16:00 | 71 |
| Fri · 17:00 | 66 |
| Fri · 18:00 | 52 |
| Fri · 19:00 | 38 |
| Fri · 20:00 | 28 |
| Fri · 21:00 | 17 |
| Fri · 22:00 | 12 |
| Fri · 23:00 | 11 |
| Sat · 0:00 | 0 |
| Sat · 1:00 | 7 |
| Sat · 2:00 | 5 |
| Sat · 3:00 | 9 |
| Sat · 4:00 | 7 |
| Sat · 5:00 | 9 |
| Sat · 6:00 | 7 |
| Sat · 7:00 | 9 |
| Sat · 8:00 | 12 |
| Sat · 9:00 | 16 |
| Sat · 10:00 | 24 |
| Sat · 11:00 | 27 |
| Sat · 12:00 | 37 |
| Sat · 13:00 | 31 |
| Sat · 14:00 | 34 |
| Sat · 15:00 | 38 |
| Sat · 16:00 | 31 |
| Sat · 17:00 | 30 |
| Sat · 18:00 | 24 |
| Sat · 19:00 | 22 |
| Sat · 20:00 | 15 |
| Sat · 21:00 | 8 |
| Sat · 22:00 | 13 |
| Sat · 23:00 | 4 |
| Sun · 0:00 | 7 |
| Sun · 1:00 | 5 |
| Sun · 2:00 | 4 |
| Sun · 3:00 | 3 |
| Sun · 4:00 | 6 |
| Sun · 5:00 | 6 |
| Sun · 6:00 | 12 |
| Sun · 7:00 | 13 |
| Sun · 8:00 | 15 |
| Sun · 9:00 | 20 |
| Sun · 10:00 | 25 |
| Sun · 11:00 | 27 |
| Sun · 12:00 | 34 |
| Sun · 13:00 | 39 |
| Sun · 14:00 | 37 |
| Sun · 15:00 | 32 |
| Sun · 16:00 | 31 |
| Sun · 17:00 | 26 |
| Sun · 18:00 | 27 |
| Sun · 19:00 | 17 |
| Sun · 20:00 | 18 |
| Sun · 21:00 | 11 |
| Sun · 22:00 | 8 |
| Sun · 23:00 | 10 |
Installation
Heatmap comes with WunderUI Core and Pro, in the package from your plan. See the plans.
The charts live in their own entry point: import the chart, its card and its hooks from @wunderui/react/charts, not from @wunderui/react.
Then import what you need:
import {
HeatmapChart,
HeatmapChartProps,
HeatmapChartVariant,
} from "@wunderui/react/charts"Then use it:
import { HeatmapChart } from "@wunderui/react/charts"
const matrix = [
[4, 12, 30, 18],
[6, 15, 34, 20],
[2, 5, 9, 4],
]
export function TicketsByHour() {
return (
<HeatmapChart
matrix={matrix}
rowLabels={["Mon", "Tue", "Sat"]}
columnLabels={["6:00", "12:00", "18:00", "24:00"]}
label="Tickets by weekday and hour"
/>
)
}Expected result: You see a grid of three rows and four columns, darker where the value is higher.
When to use
Use Heatmap for
- A value for each row and column: weekday by hour, a contribution calendar
- A correlation matrix on a diverging scale
- A punch card, where the size of a circle replaces colour
Use something else for
- Bubble Chart for the relation between two measures
- Bar Chart for values along one dimension
- Treemap for parts of a hierarchy
- Distribution Chart for how one measure spreads
States
Loading, empty and error keep the chart's size, so the card never jumps. Add a retry handler and the error state offers a Try again button.
Sessions by hour
| Row · column | Value |
|---|---|
| Mon · 0:00 | 6 |
| Mon · 1:00 | 2 |
| Mon · 2:00 | 8 |
| Mon · 3:00 | 4 |
| Mon · 4:00 | 4 |
| Mon · 5:00 | 6 |
| Mon · 6:00 | 10 |
| Mon · 7:00 | 20 |
| Mon · 8:00 | 27 |
| Mon · 9:00 | 43 |
| Mon · 10:00 | 50 |
| Mon · 11:00 | 66 |
| Mon · 12:00 | 78 |
| Mon · 13:00 | 80 |
| Mon · 14:00 | 87 |
| Mon · 15:00 | 82 |
| Mon · 16:00 | 72 |
| Mon · 17:00 | 66 |
| Mon · 18:00 | 48 |
| Mon · 19:00 | 35 |
| Mon · 20:00 | 32 |
| Mon · 21:00 | 16 |
| Mon · 22:00 | 16 |
| Mon · 23:00 | 11 |
| Tue · 0:00 | 4 |
| Tue · 1:00 | 1 |
| Tue · 2:00 | 6 |
| Tue · 3:00 | 4 |
| Tue · 4:00 | 10 |
| Tue · 5:00 | 12 |
| Tue · 6:00 | 14 |
| Tue · 7:00 | 16 |
| Tue · 8:00 | 27 |
| Tue · 9:00 | 39 |
| Tue · 10:00 | 50 |
| Tue · 11:00 | 67 |
| Tue · 12:00 | 75 |
| Tue · 13:00 | 83 |
| Tue · 14:00 | 82 |
| Tue · 15:00 | 85 |
| Tue · 16:00 | 72 |
| Tue · 17:00 | 64 |
| Tue · 18:00 | 55 |
| Tue · 19:00 | 42 |
| Tue · 20:00 | 33 |
| Tue · 21:00 | 18 |
| Tue · 22:00 | 15 |
| Tue · 23:00 | 11 |
| Wed · 0:00 | 7 |
| Wed · 1:00 | 5 |
| Wed · 2:00 | 8 |
| Wed · 3:00 | 7 |
| Wed · 4:00 | 10 |
| Wed · 5:00 | 11 |
| Wed · 6:00 | 11 |
| Wed · 7:00 | 22 |
| Wed · 8:00 | 31 |
| Wed · 9:00 | 39 |
| Wed · 10:00 | 52 |
| Wed · 11:00 | 61 |
| Wed · 12:00 | 74 |
| Wed · 13:00 | 78 |
| Wed · 14:00 | 87 |
| Wed · 15:00 | 81 |
| Wed · 16:00 | 75 |
| Wed · 17:00 | 63 |
| Wed · 18:00 | 54 |
| Wed · 19:00 | 40 |
| Wed · 20:00 | 25 |
| Wed · 21:00 | 24 |
| Wed · 22:00 | 12 |
| Wed · 23:00 | 8 |
| Thu · 0:00 | 6 |
| Thu · 1:00 | 1 |
| Thu · 2:00 | 3 |
| Thu · 3:00 | 4 |
| Thu · 4:00 | 3 |
| Thu · 5:00 | 14 |
| Thu · 6:00 | 18 |
| Thu · 7:00 | 20 |
| Thu · 8:00 | 30 |
| Thu · 9:00 | 41 |
| Thu · 10:00 | 51 |
| Thu · 11:00 | 62 |
| Thu · 12:00 | 72 |
| Thu · 13:00 | 85 |
| Thu · 14:00 | 86 |
| Thu · 15:00 | 83 |
| Thu · 16:00 | 78 |
| Thu · 17:00 | 68 |
| Thu · 18:00 | 48 |
| Thu · 19:00 | 35 |
| Thu · 20:00 | 32 |
| Thu · 21:00 | 16 |
| Thu · 22:00 | 15 |
| Thu · 23:00 | 13 |
| Fri · 0:00 | 6 |
| Fri · 1:00 | 2 |
| Fri · 2:00 | 5 |
| Fri · 3:00 | 4 |
| Fri · 4:00 | 5 |
| Fri · 5:00 | 8 |
| Fri · 6:00 | 16 |
| Fri · 7:00 | 19 |
| Fri · 8:00 | 29 |
| Fri · 9:00 | 41 |
| Fri · 10:00 | 51 |
| Fri · 11:00 | 61 |
| Fri · 12:00 | 77 |
| Fri · 13:00 | 82 |
| Fri · 14:00 | 82 |
| Fri · 15:00 | 80 |
| Fri · 16:00 | 71 |
| Fri · 17:00 | 66 |
| Fri · 18:00 | 52 |
| Fri · 19:00 | 38 |
| Fri · 20:00 | 28 |
| Fri · 21:00 | 17 |
| Fri · 22:00 | 12 |
| Fri · 23:00 | 11 |
| Sat · 0:00 | 0 |
| Sat · 1:00 | 7 |
| Sat · 2:00 | 5 |
| Sat · 3:00 | 9 |
| Sat · 4:00 | 7 |
| Sat · 5:00 | 9 |
| Sat · 6:00 | 7 |
| Sat · 7:00 | 9 |
| Sat · 8:00 | 12 |
| Sat · 9:00 | 16 |
| Sat · 10:00 | 24 |
| Sat · 11:00 | 27 |
| Sat · 12:00 | 37 |
| Sat · 13:00 | 31 |
| Sat · 14:00 | 34 |
| Sat · 15:00 | 38 |
| Sat · 16:00 | 31 |
| Sat · 17:00 | 30 |
| Sat · 18:00 | 24 |
| Sat · 19:00 | 22 |
| Sat · 20:00 | 15 |
| Sat · 21:00 | 8 |
| Sat · 22:00 | 13 |
| Sat · 23:00 | 4 |
| Sun · 0:00 | 7 |
| Sun · 1:00 | 5 |
| Sun · 2:00 | 4 |
| Sun · 3:00 | 3 |
| Sun · 4:00 | 6 |
| Sun · 5:00 | 6 |
| Sun · 6:00 | 12 |
| Sun · 7:00 | 13 |
| Sun · 8:00 | 15 |
| Sun · 9:00 | 20 |
| Sun · 10:00 | 25 |
| Sun · 11:00 | 27 |
| Sun · 12:00 | 34 |
| Sun · 13:00 | 39 |
| Sun · 14:00 | 37 |
| Sun · 15:00 | 32 |
| Sun · 16:00 | 31 |
| Sun · 17:00 | 26 |
| Sun · 18:00 | 27 |
| Sun · 19:00 | 17 |
| Sun · 20:00 | 18 |
| Sun · 21:00 | 11 |
| Sun · 22:00 | 8 |
| Sun · 23:00 | 10 |
Colour scale
Shade paints one colour at a strength that follows the value. Indigo steps paint five tones of one hue, indigo 200 for the quietest cells to 600 for the busiest, and pick white or near-black text per step. The legend under the grid shows the same steps and its two ends are yours to name (scaleLabels). Cells arrive as a column wave; hover a cell and the others step back. The arrow keys walk the grid, ↑ ↓ between rows.
Support tickets
| Row · column | Value |
|---|---|
| Mon · 0:00 | 1 |
| Mon · 3:00 | 9 |
| Mon · 6:00 | 26 |
| Mon · 9:00 | 45 |
| Mon · 12:00 | 70 |
| Mon · 15:00 | 73 |
| Mon · 18:00 | 45 |
| Mon · 21:00 | 23 |
| Tue · 0:00 | 8 |
| Tue · 3:00 | 7 |
| Tue · 6:00 | 24 |
| Tue · 9:00 | 52 |
| Tue · 12:00 | 68 |
| Tue · 15:00 | 71 |
| Tue · 18:00 | 52 |
| Tue · 21:00 | 21 |
| Wed · 0:00 | 6 |
| Wed · 3:00 | 14 |
| Wed · 6:00 | 22 |
| Wed · 9:00 | 50 |
| Wed · 12:00 | 75 |
| Wed · 15:00 | 69 |
| Wed · 18:00 | 50 |
| Wed · 21:00 | 28 |
| Thu · 0:00 | 4 |
| Thu · 3:00 | 12 |
| Thu · 6:00 | 20 |
| Thu · 9:00 | 48 |
| Thu · 12:00 | 73 |
| Thu · 15:00 | 67 |
| Thu · 18:00 | 48 |
| Thu · 21:00 | 26 |
| Fri · 0:00 | 2 |
| Fri · 3:00 | 10 |
| Fri · 6:00 | 27 |
| Fri · 9:00 | 46 |
| Fri · 12:00 | 71 |
| Fri · 15:00 | 74 |
| Fri · 18:00 | 46 |
| Fri · 21:00 | 24 |
| Sat · 0:00 | 8 |
| Sat · 3:00 | 4 |
| Sat · 6:00 | 12 |
| Sat · 9:00 | 24 |
| Sat · 12:00 | 25 |
| Sat · 15:00 | 28 |
| Sat · 18:00 | 24 |
| Sat · 21:00 | 9 |
| Sun · 0:00 | 6 |
| Sun · 3:00 | 2 |
| Sun · 6:00 | 10 |
| Sun · 9:00 | 22 |
| Sun · 12:00 | 23 |
| Sun · 15:00 | 26 |
| Sun · 18:00 | 22 |
| Sun · 21:00 | 7 |
Keyboard interactions
The plot is focusable and the arrow keys walk the grid: left and right in a row, up and down between rows. The live region reads row, column and value (like Mon, 9am: 12), or no value for an empty cell.
- TaborShift+Tab
- Moves focus to the plot and away from it. The plot is one tab stop; so is every legend badge.
- ArrowRightorArrowLeft
- Moves to the next or previous cell in the row. The tooltip follows, and a live region announces the one you are on. The first press starts at the first cell (Left: the last one).
- ArrowDownorArrowUp
- Moves to the cell below or above in the same column; a shorter row takes its nearest cell.
- HomeorEnd
- Jumps to the first or last cell of the row. With Ctrl (Cmd on a Mac): to the first or last cell of the grid.
- Escape
- Clears the active point.
- EnterorSpace
- On a legend badge of a ChartCard: switches its series off or on. The last visible series stays on.
Behavior and motion
What the chart does on its own and what the page decides.
- Matrix
- The matrix is a list of rows of values, with null for no data. Row and column labels name them, and the column tick setting thins the labels when there are many.
- Colour
- Tint grows with value, and a null cell uses the muted colour, not a low value. The correlation matrix uses a diverging scale: blue for positive, red for negative.
- Cell values
- The labelled heatmap and correlation matrix write the value in each cell, in a text colour that keeps contrast. When cells are too small, only the hovered or focused one shows its value.
- Scale legend
- A Less to More strip sits under the grid, and you can hide it or add a caption such as 2,384 contributions in 2026.
- Loading, empty and error
- The chart keeps its size while loading, empty or failed, so the card never changes height. Add a retry handler to show a Try again button on error.
- Size
- The chart fills the width of its container, and you set the plot height. Text never scales: labels keep their size at every width.
Motion
The enter sequence and hover follow the library's motion tokens.
- Column wave
- Cells settle in column by column from left to right, the whole grid in about 1.1 s, the first time the chart is in view, after loading and when new data arrives. A parent re-render with the same values does not replay it. You can turn it off.
- Hover
- The hovered or focused cell keeps its strength and the others dim to --chart-dim, with a short opacity transition.
- Reduced motion
- With reduced motion the enter sequence is off and the chart appears at once. The tooltip, the hover dimming and every state still work.
Anatomy
HeatmapChart shows a value for each row and column as colour: a weekday by hour grid, a contribution calendar, a punch card, labelled cells or a correlation matrix. Pass the grid as a matrix.
Support tickets
| Row · column | Value |
|---|---|
| Mon · 0:00 | 1 |
| Mon · 3:00 | 9 |
| Mon · 6:00 | 26 |
| Mon · 9:00 | 45 |
| Mon · 12:00 | 70 |
| Mon · 15:00 | 73 |
| Mon · 18:00 | 45 |
| Mon · 21:00 | 23 |
| Tue · 0:00 | 8 |
| Tue · 3:00 | 7 |
| Tue · 6:00 | 24 |
| Tue · 9:00 | 52 |
| Tue · 12:00 | 68 |
| Tue · 15:00 | 71 |
| Tue · 18:00 | 52 |
| Tue · 21:00 | 21 |
| Wed · 0:00 | 6 |
| Wed · 3:00 | 14 |
| Wed · 6:00 | 22 |
| Wed · 9:00 | 50 |
| Wed · 12:00 | 75 |
| Wed · 15:00 | 69 |
| Wed · 18:00 | 50 |
| Wed · 21:00 | 28 |
| Thu · 0:00 | 4 |
| Thu · 3:00 | 12 |
| Thu · 6:00 | 20 |
| Thu · 9:00 | 48 |
| Thu · 12:00 | 73 |
| Thu · 15:00 | 67 |
| Thu · 18:00 | 48 |
| Thu · 21:00 | 26 |
| Fri · 0:00 | 2 |
| Fri · 3:00 | 10 |
| Fri · 6:00 | 27 |
| Fri · 9:00 | 46 |
| Fri · 12:00 | 71 |
| Fri · 15:00 | 74 |
| Fri · 18:00 | 46 |
| Fri · 21:00 | 24 |
| Sat · 0:00 | 8 |
| Sat · 3:00 | 4 |
| Sat · 6:00 | 12 |
| Sat · 9:00 | 24 |
| Sat · 12:00 | 25 |
| Sat · 15:00 | 28 |
| Sat · 18:00 | 24 |
| Sat · 21:00 | 9 |
| Sun · 0:00 | 6 |
| Sun · 3:00 | 2 |
| Sun · 6:00 | 10 |
| Sun · 9:00 | 22 |
| Sun · 12:00 | 23 |
| Sun · 15:00 | 26 |
| Sun · 18:00 | 22 |
| Sun · 21:00 | 7 |
- 1
Takes a matrix of rows by columns (null for no data) plus row and column labels. Options thin the column labels, set the colour scale or the tonal indigo palette, add a caption and name the two ends of the scale legend.
- 2data-slot="chart-plot"
The focusable region. Arrow keys walk the marks and the live region reads each one as the tooltip shows it.
- 3data-slot="chart-marks"
One rounded cell per value, arriving as a column wave from left to right. Strength grows with value (or one of five indigo steps) and a null cell uses the muted colour, not a low value. The hovered cell keeps its strength while every other cell steps back.
- data-slot="chart-value-active"Optional
The number inside each cell on the labelled heatmap and correlation matrix, in a text colour that keeps contrast. When cells are too small, only the hovered or focused cell shows its value.
- Optional
The strip under the grid, Less to More by default (scaleLabels renames the ends, -1 to +1 on the correlation matrix, blue positive and red negative), plus a caption such as 2,384 contributions in 2026. Its width follows its labels.
- 4data-slot="chart-tooltip"Optional
Row and column labels as the title, then the cell value.
- data-slot="chart-message"Optional
Muted bars as the placeholder under the shimmer. A matrix with no numbers counts as empty, and you can reword the message with a custom title and description.
A table of every cell for screen readers.
- data-slot="chart-scale-legend"Optional
Best practices
- Do
Use one hue per measure (indigo by default, green on the calendar) so lightness is the only variable. Use diverging blue and red only for values around zero, like correlations.
- Do
Use the labelled heatmap when people need the number, and the punch card when a cell has a count and a rate. Colour alone is a rough read.
- Do
Pass null for missing data, not 0. A zero is a measurement and is drawn as the lowest step.
- Don’t
Don't compare two heatmaps with different maxima. Each one scales to its own largest value, so the same colour means different numbers.
- Don’t
Don't go beyond about 7 by 24 cells without thinning the column labels. Dense labels overlap and the grid stops being readable.
API reference
One table for HeatmapChart, listing every prop. The ChartCard around it takes its own props (title, legend, periods, table and more), and the chart works without one.
Takes a matrix of rows by columns (null for no data) plus row and column labels. Options thin the column labels, set the colour scale or the tonal indigo palette, add a caption and name the two ends of the scale legend.
| Prop | Type | Default | Description |
|---|---|---|---|
| matrix required | readonly (readonly (number | null)[])[] | — | Values row by row (rows × columns). = no data. Correlation: −1…1. |
| rowLabels required | readonly string[] | — | |
| columnLabels required | readonly string[] | — | Column labels; with only every n-th is shown (calendar months, hours). |
| variant | "matrix-heatmap" | "calendar-heatmap" | "punch-card" | "labelled-heatmap" | "correlation-matrix" | "matrix-heatmap" | Figma variant. Default . |
| columnTickEvery | number | 1 | |
| color | "indigo" | "blue" | "purple" | "green" | "orange" | "pink" | "yellow" | "red" | "grey" | — | Colour of the scale (default indigo; calendar green). Correlation uses blue / red. |
| caption | string | — | Text under the grid, e.g. "2,384 contributions in 2026". |
| showLegend | boolean | true | "Less ■■■■■ More" scale under the grid. Default true. |
| valueFormatter | ChartValueFormatter | — | |
| label | string | — | |
| height | number | — | |
| state | "ready" | "loading" | "empty" | "error" | — | |
| palette | "shade" | "indigo" | "shade" | shade paints the scale colour at a strength that follows the value; indigo paints five tonal steps from indigo 200 (low) to 600 (high), with the text colour picked per step. The correlation matrix keeps blue and red. |
| scaleLabels | readonly [string, string] | — | The words at the two ends of the scale legend, such as Quiet and Busy. The correlation matrix defaults to -1 and +1. |
| activeIndex | number | null | — | The active point (hovered or focused) as an index into , to control it yourself. shows none. |
| animate | boolean | — | |
| animationKey | string | number | — | |
| defaultActiveIndex | number | null | — | The point that is active at first, for an uncontrolled chart. It shows the tooltip without a pointer. |
| onActiveIndexChange | (index) => void | — | Called with the index when the pointer or the arrow keys move to another point, and with when they leave. Use it to show the hovered value in a headline. |
| onRetry | () => void | — | Shows a Try again button in the error state and calls this when it is pressed. |
| width | number | — |
Notes for AI
Give your coding assistant the Markdown reference instead of screenshots.
get_component("heatmap")The full library index for assistants is at /llms.txt.
Related components
Account health: 11 points in 3 groups, x from 0 to 172, y from 0 to 92. Account health, data table name x y Size Group Account 1 22 78 40 Enterprise Account 2 72 92 120 Enterprise Account 3 124 62 200 Enterprise Account 4 172 86 80 Enterprise Account 5 34 42 30 Mid-market Account 6 88 68 60 Mid-market Account 7 138 38 45 Mid-market Account 8 166 58 35 Mid-market Account 9 52 22 20 Startup Account 10 104 30 25 Startup Account 11 148 80 18 Startup Charts10 stylesProBubble ChartScatter and bubble charts for the relation between two or three values: scatter, bubbles, dot plot, dot matrix, regression, quadrants, beeswarm and a connected scatter.Distribution chart, 3 points from API to Edge. Median from 136 ms to 74 ms, lowest 74 ms, highest 196 ms. Response time, data table group Median API 136 ms Web 196 ms Edge 74 ms Charts10 stylesProDistribution ChartDistribution chart for raw observations: histograms, box plot, violin, density, ridgeline, strip plot and error bars.Revenue by product line: 12 parts, total $1.8M. Largest: Enterprise $410k, Core $340k, Pro $260k. Revenue by product line, data table label Path Value Share Core Software › Core $340k 18.4% Pro Software › Pro $260k 14.1% Enterprise Software › Enterprise $410k 22.2% Add-ons Software › Add-ons $90k 4.9% Onboarding Services › Onboarding $120k 6.5% Training Services › Training $80k 4.3% Support Services › Support $150k 8.1% Devices Hardware › Devices $180k 9.8% Accessories Hardware › Accessories $60k 3.3% Templates Marketplace › Templates $70k 3.8% Plugins Marketplace › Plugins $55k 3% Themes Marketplace › Themes $30k 1.6% Charts5 stylesProTreemapTreemap for the parts of a hierarchy: squarified, nested with group headers, or as an icicle.Bar chart, 12 points from Jan to Dec. Revenue from $32.0k to $58.0k, lowest $32.0k, highest $58.0k; Expenses from $18.0k to $35.0k, lowest $18.0k, highest $38.0k. Revenue and expenses, data table month Revenue Expenses Jan $32.0k $18.0k Feb $41.0k $22.0k Mar $38.0k $27.0k Apr $47.0k $24.0k May $44.0k $30.0k Jun $52.0k $28.0k Jul $49.0k $34.0k Aug $55.0k $31.0k Sep $51.0k $36.0k Oct $46.0k $33.0k Nov $53.0k $38.0k Dec $58.0k $35.0k Charts32 stylesProBar ChartBar chart for comparing values: grouped, horizontal, diverging, top-k and highlighted bars, with tooltip, keyboard navigation and a data table.