Data Visualization
HeatMap
Heat maps from @salmonui/charts/heat-map with category, numeric and time axes, label groups, gradient and step color scales, bubbles, legends, selection, tooltips and a canvas renderer for a million cells.
HeatMap lives in @salmonui/charts/heat-map. data is a 2D table
(data[row][column], rows are y) or records read through xField,
yField and valueField; sizeField adds a second value for bubbles.
import { HeatMap } from '@salmonui/charts/heat-map';
import '@salmonui/charts/heat-map/styles.css';
<HeatMap data={table} xAxis={{ labels: days }} yAxis={{ labels: hours }} cells={{ labels: true }} height={360} />
Heat map with step legend
Open demoA HeatMap of load by weekday and hour with cell labels, a step color scale of data colors, a toggling list legend, multiple selection and hour groups.
Heat map, 6 rows by 7 columns, values from 0 to 22.
| Hour | Column | Value |
|---|---|---|
| 00 | Mon | 0 |
| 00 | Tue | 5 |
| 00 | Wed | 10 |
| 00 | Thu | 15 |
| 00 | Fri | 3 |
| 00 | Sat | 8 |
| 00 | Sun | 13 |
| 04 | Mon | 11 |
| 04 | Tue | 16 |
| 04 | Wed | 4 |
| 04 | Thu | 9 |
| 04 | Fri | 14 |
| 04 | Sat | 2 |
| 04 | Sun | 7 |
| 08 | Mon | 11 |
| 08 | Tue | 16 |
| 08 | Wed | 21 |
| 08 | Thu | 9 |
| 08 | Fri | 14 |
| 08 | Sat | 13 |
| 08 | Sun | 1 |
| 12 | Mon | 22 |
| 12 | Tue | 10 |
| 12 | Wed | 15 |
| 12 | Thu | 20 |
| 12 | Fri | 8 |
| 12 | Sat | 7 |
| 12 | Sun | 12 |
| 16 | Mon | 16 |
| 16 | Tue | 21 |
| 16 | Wed | 9 |
| 16 | Thu | 14 |
| 16 | Fri | 19 |
| 16 | Sat | 1 |
| 16 | Sun | 6 |
| 20 | Mon | 4 |
| 20 | Tue | 9 |
| 20 | Wed | 14 |
| 20 | Thu | 2 |
| 20 | Fri | 7 |
| 20 | Sat | 12 |
| 20 | Sun | 0 |
Selected: none
Axes
xAxis and yAxis take labels, scale ('category', 'linear' or
'time': numeric and time keys are sorted and filtered by min / max),
interval (every n-th label), format (Intl options or a function of the
key), labelOverlap ('none', 'hide', 'trim', 'wrap', 'rotate45',
'rotate90'), maxLabelWidth, position
('bottom' / 'top', 'start' / 'end'), reversed, title and
labelGroups: [{ from, to, text }] for a second level of labels. Time keys
format in timeZone (UTC by default, so server and client agree).
Colors and legend
Without stops the cells use the derived sequential roles
(--salmon-chart-sequential-1..9). colorScale takes data colors:
{ kind: 'gradient' | 'steps', stops: [{ value, color, label }], domain: 'all' | 'row' | 'column', outOfRange }. A gradient scale shows a gradient
legend; a steps scale shows a list legend whose toggle buttons hide the cells
of a step through hiddenItems / defaultHiddenItems /
onHiddenItemsChange (indices of the steps stops). legend is true or
{ position: 'top' | 'bottom' | 'start' | 'end', title, labels: 'all' | 'edge' | 'none', format, toggle }. Empty cells
(null) use the neutral empty color and read "No value" in the table.
cells: { labels, format, shape: 'rect' | 'bubble', bubble: 'size' | 'color' | 'sizeAndColor' | 'sector', highlight }. formatCell(cell) changes the
label text and getCellStyle(cell) the color.
Selection, events and tooltip
selection (true or { multiple }) toggles cells on click, Enter and
Space. Selection is controlled with selectedCells + onSelectedCellsChange
or uncontrolled with defaultSelectedCells; cells are { x, y } column and
row indices, and the event carries source and reason ('click' or
'keyboard').
import { useState } from 'react';
import { HeatMap, type HeatMapCellRef } from '@salmonui/charts/heat-map';
function Picker({ table }: { table: number[][] }) {
const [selected, setSelected] = useState<readonly HeatMapCellRef[]>([]);
return <HeatMap data={table} selection={{ multiple: true }} selectedCells={selected} onSelectedCellsChange={setSelected} height={300} />;
}
onCellClick(cell, event), onCellDoubleClick(cell) and
onCellHover(cell | null) report a HeatMapCell (x, y, xKey, yKey,
value, size, color). The tooltip (tooltip: true or { render(cell) }) is driven by the store: a pointer move that stays in a cell re-renders
nothing.
Bubble heat map with custom cells
Open demoA survey HeatMap of records with a value and a size field drawn as bubbles, long axis labels that trim or wrap, axis position and reversal, a title and subtitle, a custom tooltip, click and double-click events, formatCell and getCellStyle.
Heat map, 5 rows by 4 columns, values from 52 to 92.
| Row | Column | Value |
|---|---|---|
| Customer onboardi… | Q1 2026 | 52 |
| Customer onboardi… | Q2 2026 | 59 |
| Customer onboardi… | Q3 2026 | 66 |
| Customer onboardi… | Q4 2026 | 73 |
| Payments platform | Q1 2026 | 65 |
| Payments platform | Q2 2026 | 72 |
| Payments platform | Q3 2026 | 79 |
| Payments platform | Q4 2026 | 86★ |
| Search and discove… | Q1 2026 | 78 |
| Search and discove… | Q2 2026 | 85★ |
| Search and discove… | Q3 2026 | 92★ |
| Search and discove… | Q4 2026 | 58 |
| Mobile experience | Q1 2026 | 91★ |
| Mobile experience | Q2 2026 | 57 |
| Mobile experience | Q3 2026 | 64 |
| Mobile experience | Q4 2026 | 71 |
| Data infrastructure | Q1 2026 | 63 |
| Data infrastructure | Q2 2026 | 70 |
| Data infrastructure | Q3 2026 | 77 |
| Data infrastructure | Q4 2026 | 84 |
Last event: none
Large matrices
renderer is 'svg', 'canvas' or 'auto' (default): from 10,000 cells
the cells draw on a lazily loaded canvas (one pixel per cell, scaled), while
axes, legend, labels and the accessible table stay SVG and DOM. A
1,000 × 1,000 heat map mounts within 200 ms and hit-testing is index
arithmetic. The server renders the axes and an empty, sized canvas.
Large heat map on canvas
Open demoA 400 × 400 HeatMap (160,000 cells) that switches to the canvas renderer automatically, with a gradient of data colors per row.
Heat map, 400 rows by 400 columns, values from -1 to 1.99.
| Row | Column | Value |
|---|---|---|
| 1 | 1 | 0 |
| 1 | 2 | 0.04 |
| 1 | 3 | 0.08 |
| 1 | 4 | 0.12 |
| 1 | 5 | 0.16 |
| 1 | 6 | 0.2 |
| 1 | 7 | 0.24 |
| 1 | 8 | 0.28 |
| 1 | 9 | 0.31 |
| 1 | 10 | 0.35 |
| 1 | 11 | 0.39 |
| 1 | 12 | 0.43 |
| 1 | 13 | 0.46 |
| 1 | 14 | 0.5 |
| 1 | 15 | 0.53 |
| 1 | 16 | 0.56 |
| 1 | 17 | 0.6 |
| 1 | 18 | 0.63 |
| 1 | 19 | 0.66 |
| 1 | 20 | 0.69 |
| 1 | 21 | 0.72 |
| 1 | 22 | 0.74 |
| 1 | 23 | 0.77 |
| 1 | 24 | 0.8 |
| 1 | 25 | 0.82 |
| 1 | 26 | 0.84 |
| 1 | 27 | 0.86 |
| 1 | 28 | 0.88 |
| 1 | 29 | 0.9 |
| 1 | 30 | 0.92 |
| 1 | 31 | 0.93 |
| 1 | 32 | 0.95 |
| 1 | 33 | 0.96 |
| 1 | 34 | 0.97 |
| 1 | 35 | 0.98 |
| 1 | 36 | 0.99 |
| 1 | 37 | 0.99 |
| 1 | 38 | 1 |
| 1 | 39 | 1 |
| 1 | 40 | 1 |
| 1 | 41 | 1 |
| 1 | 42 | 1 |
| 1 | 43 | 0.99 |
| 1 | 44 | 0.99 |
| 1 | 45 | 0.98 |
| 1 | 46 | 0.97 |
| 1 | 47 | 0.96 |
| 1 | 48 | 0.95 |
| 1 | 49 | 0.94 |
| 1 | 50 | 0.93 |
| 1 | 51 | 0.91 |
| 1 | 52 | 0.89 |
| 1 | 53 | 0.87 |
| 1 | 54 | 0.85 |
| 1 | 55 | 0.83 |
| 1 | 56 | 0.81 |
| 1 | 57 | 0.78 |
| 1 | 58 | 0.76 |
| 1 | 59 | 0.73 |
| 1 | 60 | 0.7 |
| 1 | 61 | 0.68 |
| 1 | 62 | 0.65 |
| 1 | 63 | 0.61 |
| 1 | 64 | 0.58 |
| 1 | 65 | 0.55 |
| 1 | 66 | 0.52 |
| 1 | 67 | 0.48 |
| 1 | 68 | 0.45 |
| 1 | 69 | 0.41 |
| 1 | 70 | 0.37 |
| 1 | 71 | 0.33 |
| 1 | 72 | 0.3 |
| 1 | 73 | 0.26 |
| 1 | 74 | 0.22 |
| 1 | 75 | 0.18 |
| 1 | 76 | 0.14 |
| 1 | 77 | 0.1 |
| 1 | 78 | 0.06 |
| 1 | 79 | 0.02 |
| 1 | 80 | -0.02 |
| 1 | 81 | -0.06 |
| 1 | 82 | -0.1 |
| 1 | 83 | -0.14 |
| 1 | 84 | -0.18 |
| 1 | 85 | -0.22 |
| 1 | 86 | -0.26 |
| 1 | 87 | -0.29 |
| 1 | 88 | -0.33 |
| 1 | 89 | -0.37 |
| 1 | 90 | -0.41 |
| 1 | 91 | -0.44 |
| 1 | 92 | -0.48 |
| 1 | 93 | -0.51 |
| 1 | 94 | -0.55 |
| 1 | 95 | -0.58 |
| 1 | 96 | -0.61 |
| 1 | 97 | -0.64 |
| 1 | 98 | -0.67 |
| 1 | 99 | -0.7 |
| 1 | 100 | -0.73 |
| 1 | 101 | -0.76 |
| 1 | 102 | -0.78 |
| 1 | 103 | -0.81 |
| 1 | 104 | -0.83 |
| 1 | 105 | -0.85 |
| 1 | 106 | -0.87 |
| 1 | 107 | -0.89 |
| 1 | 108 | -0.91 |
| 1 | 109 | -0.92 |
| 1 | 110 | -0.94 |
| 1 | 111 | -0.95 |
| 1 | 112 | -0.96 |
| 1 | 113 | -0.97 |
| 1 | 114 | -0.98 |
| 1 | 115 | -0.99 |
| 1 | 116 | -0.99 |
| 1 | 117 | -1 |
| 1 | 118 | -1 |
| 1 | 119 | -1 |
| 1 | 120 | -1 |
| 1 | 121 | -1 |
| 1 | 122 | -0.99 |
| 1 | 123 | -0.99 |
| 1 | 124 | -0.98 |
| 1 | 125 | -0.97 |
| 1 | 126 | -0.96 |
| 1 | 127 | -0.95 |
| 1 | 128 | -0.93 |
| 1 | 129 | -0.92 |
| 1 | 130 | -0.9 |
| 1 | 131 | -0.88 |
| 1 | 132 | -0.86 |
| 1 | 133 | -0.84 |
| 1 | 134 | -0.82 |
| 1 | 135 | -0.8 |
| 1 | 136 | -0.77 |
| 1 | 137 | -0.75 |
| 1 | 138 | -0.72 |
| 1 | 139 | -0.69 |
| 1 | 140 | -0.66 |
| 1 | 141 | -0.63 |
| 1 | 142 | -0.6 |
| 1 | 143 | -0.57 |
| 1 | 144 | -0.53 |
| 1 | 145 | -0.5 |
| 1 | 146 | -0.46 |
| 1 | 147 | -0.43 |
| 1 | 148 | -0.39 |
| 1 | 149 | -0.36 |
| 1 | 150 | -0.32 |
| 1 | 151 | -0.28 |
| 1 | 152 | -0.24 |
| 1 | 153 | -0.2 |
| 1 | 154 | -0.16 |
| 1 | 155 | -0.12 |
| 1 | 156 | -0.08 |
| 1 | 157 | -0.04 |
| 1 | 158 | -0 |
| 1 | 159 | 0.04 |
| 1 | 160 | 0.08 |
| 1 | 161 | 0.12 |
| 1 | 162 | 0.16 |
| 1 | 163 | 0.2 |
| 1 | 164 | 0.23 |
| 1 | 165 | 0.27 |
| 1 | 166 | 0.31 |
| 1 | 167 | 0.35 |
| 1 | 168 | 0.39 |
| 1 | 169 | 0.42 |
| 1 | 170 | 0.46 |
| 1 | 171 | 0.49 |
| 1 | 172 | 0.53 |
| 1 | 173 | 0.56 |
| 1 | 174 | 0.59 |
| 1 | 175 | 0.63 |
| 1 | 176 | 0.66 |
| 1 | 177 | 0.69 |
| 1 | 178 | 0.72 |
| 1 | 179 | 0.74 |
| 1 | 180 | 0.77 |
| 1 | 181 | 0.79 |
| 1 | 182 | 0.82 |
| 1 | 183 | 0.84 |
| 1 | 184 | 0.86 |
| 1 | 185 | 0.88 |
| 1 | 186 | 0.9 |
| 1 | 187 | 0.92 |
| 1 | 188 | 0.93 |
| 1 | 189 | 0.94 |
| 1 | 190 | 0.96 |
| 1 | 191 | 0.97 |
| 1 | 192 | 0.98 |
| 1 | 193 | 0.98 |
| 1 | 194 | 0.99 |
| 1 | 195 | 1 |
| 1 | 196 | 1 |
| 1 | 197 | 1 |
| 1 | 198 | 1 |
| 1 | 199 | 1 |
| 1 | 200 | 0.99 |
| 1 | 201 | 0.99 |
| 1 | 202 | 0.98 |
| 1 | 203 | 0.97 |
| 1 | 204 | 0.96 |
| 1 | 205 | 0.95 |
| 1 | 206 | 0.94 |
| 1 | 207 | 0.93 |
| 1 | 208 | 0.91 |
| 1 | 209 | 0.89 |
| 1 | 210 | 0.87 |
| 1 | 211 | 0.85 |
| 1 | 212 | 0.83 |
| 1 | 213 | 0.81 |
| 1 | 214 | 0.79 |
| 1 | 215 | 0.76 |
| 1 | 216 | 0.73 |
| 1 | 217 | 0.71 |
| 1 | 218 | 0.68 |
| 1 | 219 | 0.65 |
| 1 | 220 | 0.62 |
| 1 | 221 | 0.58 |
| 1 | 222 | 0.55 |
| 1 | 223 | 0.52 |
| 1 | 224 | 0.48 |
| 1 | 225 | 0.45 |
| 1 | 226 | 0.41 |
| 1 | 227 | 0.38 |
| 1 | 228 | 0.34 |
| 1 | 229 | 0.3 |
| 1 | 230 | 0.26 |
| 1 | 231 | 0.22 |
| 1 | 232 | 0.18 |
| 1 | 233 | 0.14 |
| 1 | 234 | 0.1 |
| 1 | 235 | 0.06 |
| 1 | 236 | 0.02 |
| 1 | 237 | -0.02 |
| 1 | 238 | -0.06 |
| 1 | 239 | -0.1 |
| 1 | 240 | -0.13 |
| 1 | 241 | -0.17 |
| 1 | 242 | -0.21 |
| 1 | 243 | -0.25 |
| 1 | 244 | -0.29 |
| 1 | 245 | -0.33 |
| 1 | 246 | -0.37 |
| 1 | 247 | -0.4 |
| 1 | 248 | -0.44 |
| 1 | 249 | -0.48 |
| 1 | 250 | -0.51 |
| 1 | 251 | -0.54 |
| 1 | 252 | -0.58 |
| 1 | 253 | -0.61 |
| 1 | 254 | -0.64 |
| 1 | 255 | -0.67 |
| 1 | 256 | -0.7 |
| 1 | 257 | -0.73 |
| 1 | 258 | -0.75 |
| 1 | 259 | -0.78 |
| 1 | 260 | -0.8 |
| 1 | 261 | -0.83 |
| 1 | 262 | -0.85 |
| 1 | 263 | -0.87 |
| 1 | 264 | -0.89 |
| 1 | 265 | -0.91 |
| 1 | 266 | -0.92 |
| 1 | 267 | -0.94 |
| 1 | 268 | -0.95 |
| 1 | 269 | -0.96 |
| 1 | 270 | -0.97 |
| 1 | 271 | -0.98 |
| 1 | 272 | -0.99 |
| 1 | 273 | -0.99 |
| 1 | 274 | -1 |
| 1 | 275 | -1 |
| 1 | 276 | -1 |
| 1 | 277 | -1 |
| 1 | 278 | -1 |
| 1 | 279 | -0.99 |
| 1 | 280 | -0.99 |
| 1 | 281 | -0.98 |
| 1 | 282 | -0.97 |
| 1 | 283 | -0.96 |
| 1 | 284 | -0.95 |
| 1 | 285 | -0.93 |
| 1 | 286 | -0.92 |
| 1 | 287 | -0.9 |
| 1 | 288 | -0.88 |
| 1 | 289 | -0.87 |
| 1 | 290 | -0.84 |
| 1 | 291 | -0.82 |
| 1 | 292 | -0.8 |
| 1 | 293 | -0.77 |
| 1 | 294 | -0.75 |
| 1 | 295 | -0.72 |
| 1 | 296 | -0.69 |
| 1 | 297 | -0.66 |
| 1 | 298 | -0.63 |
| 1 | 299 | -0.6 |
| 1 | 300 | -0.57 |
| 1 | 301 | -0.54 |
| 1 | 302 | -0.5 |
| 1 | 303 | -0.47 |
| 1 | 304 | -0.43 |
| 1 | 305 | -0.4 |
| 1 | 306 | -0.36 |
| 1 | 307 | -0.32 |
| 1 | 308 | -0.28 |
| 1 | 309 | -0.24 |
| 1 | 310 | -0.2 |
| 1 | 311 | -0.17 |
| 1 | 312 | -0.13 |
| 1 | 313 | -0.09 |
| 1 | 314 | -0.05 |
| 1 | 315 | -0.01 |
| 1 | 316 | 0.03 |
| 1 | 317 | 0.07 |
| 1 | 318 | 0.11 |
| 1 | 319 | 0.15 |
| 1 | 320 | 0.19 |
| 1 | 321 | 0.23 |
| 1 | 322 | 0.27 |
| 1 | 323 | 0.31 |
| 1 | 324 | 0.35 |
| 1 | 325 | 0.38 |
| 1 | 326 | 0.42 |
| 1 | 327 | 0.46 |
| 1 | 328 | 0.49 |
| 1 | 329 | 0.53 |
| 1 | 330 | 0.56 |
| 1 | 331 | 0.59 |
| 1 | 332 | 0.62 |
| 1 | 333 | 0.65 |
| 1 | 334 | 0.68 |
| 1 | 335 | 0.71 |
| 1 | 336 | 0.74 |
| 1 | 337 | 0.77 |
| 1 | 338 | 0.79 |
| 1 | 339 | 0.82 |
| 1 | 340 | 0.84 |
| 1 | 341 | 0.86 |
| 1 | 342 | 0.88 |
| 1 | 343 | 0.9 |
| 1 | 344 | 0.91 |
| 1 | 345 | 0.93 |
| 1 | 346 | 0.94 |
| 1 | 347 | 0.96 |
| 1 | 348 | 0.97 |
| 1 | 349 | 0.98 |
| 1 | 350 | 0.98 |
| 1 | 351 | 0.99 |
| 1 | 352 | 1 |
| 1 | 353 | 1 |
| 1 | 354 | 1 |
| 1 | 355 | 1 |
| 1 | 356 | 1 |
| 1 | 357 | 0.99 |
| 1 | 358 | 0.99 |
| 1 | 359 | 0.98 |
| 1 | 360 | 0.98 |
| 1 | 361 | 0.97 |
| 1 | 362 | 0.95 |
| 1 | 363 | 0.94 |
| 1 | 364 | 0.93 |
| 1 | 365 | 0.91 |
| 1 | 366 | 0.89 |
| 1 | 367 | 0.88 |
| 1 | 368 | 0.86 |
| 1 | 369 | 0.83 |
| 1 | 370 | 0.81 |
| 1 | 371 | 0.79 |
| 1 | 372 | 0.76 |
| 1 | 373 | 0.74 |
| 1 | 374 | 0.71 |
| 1 | 375 | 0.68 |
| 1 | 376 | 0.65 |
| 1 | 377 | 0.62 |
| 1 | 378 | 0.59 |
| 1 | 379 | 0.55 |
| 1 | 380 | 0.52 |
| 1 | 381 | 0.49 |
| 1 | 382 | 0.45 |
| 1 | 383 | 0.42 |
| 1 | 384 | 0.38 |
| 1 | 385 | 0.34 |
| 1 | 386 | 0.3 |
| 1 | 387 | 0.26 |
| 1 | 388 | 0.23 |
| 1 | 389 | 0.19 |
| 1 | 390 | 0.15 |
| 1 | 391 | 0.11 |
| 1 | 392 | 0.07 |
| 1 | 393 | 0.03 |
| 1 | 394 | -0.01 |
| 1 | 395 | -0.05 |
| 1 | 396 | -0.09 |
| 1 | 397 | -0.13 |
| 1 | 398 | -0.17 |
| 1 | 399 | -0.21 |
| 1 | 400 | -0.25 |
| 2 | 1 | 0 |
| 2 | 2 | 0.04 |
| 2 | 3 | 0.08 |
| 2 | 4 | 0.12 |
| 2 | 5 | 0.16 |
| 2 | 6 | 0.2 |
| 2 | 7 | 0.24 |
| 2 | 8 | 0.28 |
| 2 | 9 | 0.32 |
| 2 | 10 | 0.35 |
| 2 | 11 | 0.39 |
| 2 | 12 | 0.43 |
| 2 | 13 | 0.46 |
| 2 | 14 | 0.5 |
| 2 | 15 | 0.53 |
| 2 | 16 | 0.57 |
| 2 | 17 | 0.6 |
| 2 | 18 | 0.63 |
| 2 | 19 | 0.66 |
| 2 | 20 | 0.69 |
| 2 | 21 | 0.72 |
| 2 | 22 | 0.75 |
| 2 | 23 | 0.77 |
| 2 | 24 | 0.8 |
| 2 | 25 | 0.82 |
| 2 | 26 | 0.84 |
| 2 | 27 | 0.86 |
| 2 | 28 | 0.88 |
| 2 | 29 | 0.9 |
| 2 | 30 | 0.92 |
| 2 | 31 | 0.93 |
| 2 | 32 | 0.95 |
| 2 | 33 | 0.96 |
| 2 | 34 | 0.97 |
| 2 | 35 | 0.98 |
| 2 | 36 | 0.99 |
| 2 | 37 | 0.99 |
| 2 | 38 | 1 |
| 2 | 39 | 1 |
| 2 | 40 | 1 |
| 2 | 41 | 1 |
| 2 | 42 | 1 |
| 2 | 43 | 1 |
| 2 | 44 | 0.99 |
| 2 | 45 | 0.98 |
| 2 | 46 | 0.97 |
| 2 | 47 | 0.96 |
| 2 | 48 | 0.95 |
| 2 | 49 | 0.94 |
| 2 | 50 | 0.93 |
| 2 | 51 | 0.91 |
| 2 | 52 | 0.89 |
| 2 | 53 | 0.87 |
| 2 | 54 | 0.85 |
| 2 | 55 | 0.83 |
| 2 | 56 | 0.81 |
| 2 | 57 | 0.79 |
| 2 | 58 | 0.76 |
| 2 | 59 | 0.73 |
| 2 | 60 | 0.71 |
| 2 | 61 | 0.68 |
| 2 | 62 | 0.65 |
| 2 | 63 | 0.62 |
| 2 | 64 | 0.58 |
| 2 | 65 | 0.55 |
| 2 | 66 | 0.52 |
| 2 | 67 | 0.48 |
| 2 | 68 | 0.45 |
| 2 | 69 | 0.41 |
| 2 | 70 | 0.37 |
| 2 | 71 | 0.34 |
| 2 | 72 | 0.3 |
| 2 | 73 | 0.26 |
| 2 | 74 | 0.22 |
| 2 | 75 | 0.18 |
| 2 | 76 | 0.14 |
| 2 | 77 | 0.1 |
| 2 | 78 | 0.06 |
| 2 | 79 | 0.02 |
| 2 | 80 | -0.02 |
| 2 | 81 | -0.06 |
| 2 | 82 | -0.1 |
| 2 | 83 | -0.14 |
| 2 | 84 | -0.17 |
| 2 | 85 | -0.21 |
| 2 | 86 | -0.25 |
| 2 | 87 | -0.29 |
| 2 | 88 | -0.33 |
| 2 | 89 | -0.37 |
| 2 | 90 | -0.4 |
| 2 | 91 | -0.44 |
| 2 | 92 | -0.47 |
| 2 | 93 | -0.51 |
| 2 | 94 | -0.54 |
| 2 | 95 | -0.58 |
| 2 | 96 | -0.61 |
| 2 | 97 | -0.64 |
| 2 | 98 | -0.67 |
| 2 | 99 | -0.7 |
| 2 | 100 | -0.73 |
| 159500 more cells not shown | ||
Keyboard and accessibility
One tab stop; arrow keys move by cell (reversed axes flip their arrows),
Home / End to the row ends (with Ctrl to the corners), PageUp / PageDown to
the first and last row, Enter or Space selects, Escape hides the tooltip. The
focused cell is announced ("08, Wed: 12"). The table lists the cells, capped
with a summary row for large matrices (showDataTable shows it). title
and subtitle label the figure; description replaces the automatic
summary.
Server rendering and API
The server renders the final SVG markup (or the sized empty canvas) at
width / height, and time keys format in timeZone, so hydration matches;
tooltips are client only. animated (default true) runs the entrance
transition after hydration with the opt-in
@salmonui/charts/viz-animations.css; it is off under
prefers-reduced-motion. onResize reports size changes.
ref receives a HeatMapApi: element, export(options), toBlob,
toDataURL, toSVGString, print() and focus(). Every prop and type is
in the API reference.
Custom content uses render props (tooltip.render, formatCell,
getCellStyle), not HTML string templates; colors follow the theme and
visual tokens are system-owned (see Rendering and colors).