Back to Components

Heatmap

Charts

Color-coded matrix visualization for patterns and data density across two dimensions with interactive tooltips and gradient legend.

Installation

$npx linspo-ui add heatmap
Dependencies: lucide-react

Activity Heatmap

5 × 7 grid

Mon
Tue
Wed
Thu
Fri
Sat
Sun
Morning
Late AM
Noon
Afternoon
Evening
2
25

25

Maximum

11

Average

2

Minimum

Props

PropTypeDefaultDescription
datanumber[][]2D array of numeric values for the heatmap cells.
xLabelsstring[]Labels for the x-axis (columns).
yLabelsstring[]Labels for the y-axis (rows).
metricstring"Activity Heatmap"Label for the metric being displayed.
classNamestringAdditional CSS classes to apply.