Sakani

Heatmap Chart

A grid where colour carries the value, for spotting patterns across two dimensions at once.

Week 1
Week 2
Week 3
Week 4
MonTueWedThuFriSatSun

Reading it

A heatmap is for finding where something concentrates — the quiet weekend column above, the busy Thursday. It's deliberately bad at exact values: nobody reads a precise number off a shade. If the specific figures matter more than the pattern, use a Table.

Shape of the data

data is row-major: data[row][col]. Rows shorter than colLabels leave gaps, so pad sparse data with zeroes rather than leaving entries out.

Props

PropTypeDefaultDescription
datanumber[][]Rows of values. Every row should be the same length as colLabels.
rowLabelsstring[]Labels down the left, one per row.
colLabelsstring[]Labels across the top, one per column.
valueLabelstringWhat a cell's number counts, used in the tooltip.
size'sm' | 'md' | 'lg' | 'xl''md'Preset cell size.