oks-ui

Data Visualization

Heatmap Chart

Chart type="heatmap" -- ChartHeatmapOptions: series as rows, categories as columns, one hue scaled by opacity across the value domain.

Preview

Sessions by day and time
Sessions by day and timeMon, 00–06: 22Mon, 06–12: 1212Mon, 12–18: 1818Mon, 18–24: 99Tue, 00–06: 11Tue, 06–12: 1414Tue, 12–18: 2020Tue, 18–24: 88Wed, 00–06: 33Wed, 06–12: 1313Wed, 12–18: 2222Wed, 18–24: 1010Thu, 00–06: 22Thu, 06–12: 1515Thu, 12–18: 1919Thu, 18–24: 1212Fri, 00–06: 44Fri, 06–12: 1616Fri, 12–18: 2424Fri, 18–24: 2121Sat, 00–06: 88Sat, 06–12: 77Sat, 12–18: 1111Sat, 18–24: 1717Sun, 00–06: 99Sun, 06–12: 55Sun, 12–18: 88Sun, 18–24: 1414MonTueWedThuFriSatSun00–0606–1212–1818–24

Click a cell to see onCellClick fire.

Type options

Content

Layout & positioning

Behavior & states

Drop the built-in card frame (border / padding / surface) — for a chart nested in a Card or a sparkline slot.

Props

data

Row[] | { categories, series }

Default:

Row-based data array, or explicit categories/series (required).

x

keyof Row | ((row: Row) => ChartCategory)

Default:

Category accessor, row-mode only.

series

ChartSeriesDef<Row> | ChartSeriesDef<Row>[]

Default:

Series accessor(s), row-mode only.

title / description

ReactNode

Default:

Chart heading text.

ariaLabel

string

Default:

Accessible label for the chart.

dataFormat

ChartDataFormatOptions

Default:

Value formatting (prefix/suffix/decimals) for labels/tooltips.

showLabels

ChartShowLabelsOptions

Default:

Inline value-label visibility.