ElevateIQ DigitalsElevateIQ DigitalsComponent Library

Heatmap

Intensity across two categories, such as weekday by hour, on a one-hue ramp with a scale.

When to use it

The ramp runs light to dark in light mode and dark to bright in dark mode, so more is always more visible. Ramp colours must resolve to hex: ECharts interpolates them itself.

Site visits by weekday and hour

Options

Everything you can pass to Heatmap.

PropTypeDefaultWhat it does
xCategories / yCategoriesstring[]—Columns, and rows drawn top to bottom.
values(number | null)[][]—values[row][column]; null leaves the cell empty.
min / maxnumberdata extentEnds of the colour scale.
labelsbooleanfalseValue in each cell, ink picked by the fill.
colorsstring[]accent tint → --chart-1Low-to-high ramp tokens.
heightnumber | string—Plot height. The HTML legend sits outside it.
valueFormatter(value) => stringen-IN, 2 dpAxis labels, tooltips, value labels and the hidden data table.
aria-labelstring—What the chart shows. Also captions its hidden data table.
loading / emptyTitle / emptyDescriptionboolean / string—Passed to Chart: skeleton, and the empty state when every value is zero.