ValyroUI Русская версия

Heatmap

Heatmaps. Pro · Charts and analytics › Maps and matrices

Rows × columns matrix with a continuous color scale.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add heatmap
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { Heatmap } from 'valyro-ui-pro';

Props

PropTypeDefault
rows *string[]Row labels, top to bottom; long ones are truncated to fit the label column.
columns *string[]Column labels, left to right; labels that would overlap are skipped.
values *number[][]values[row][column]. Missing or non-finite values render as empty cells.
colorstring'var(--ui-chart-1)'Any CSS color. Default --ui-chart-1.
valueFormatterValueFormatterFormats values in the tooltip, cells and data table.
localestringBCP 47 locale for the default number formatting. Default: the ThemeProvider locale, then the browser's.
labelsPartial<HeatmapLabels>Overrides for the built-in strings.
showValuesbooleanfalsePrint the value inside each cell (where it fits).
cellHeightnumber28Default 28.
ariaLabel *stringAccessible name of the chart (also the caption of its sr-only data table).

Related components

Previous: Radar Chart · Next: Map Chart · All Charts and analytics