The Heatmap's grid with every cell filled by a Bayer pattern whose density follows its value.
Used for
- Activity by weekday and hour
- Any two-axis grid where the pattern is the message
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- rows / columns / values
string[] / string[] / (number | null)[][]- As in Heatmap. null is no data, never a zero.
- min / max
number- Default
0 / highest - The scale. Pin max to compare grids.
- cellHeight
number- Default
28 - Cell height in px.
- color
string- Default
accent - Any CSS colour.
- onCellSelect
(cell, value) => void- Click, Enter or Space on a cell.
- columnLabelEvery / legend / format
-- As in Heatmap.
- label
string- Names the chart for screen readers and the data table caption.
- pitch
number- Default
4 - Cell size in CSS px. A whole number of device pixels, so it stays crisp at 1x and 2x.
- Motion
-- A data change eases for 280ms (slow) with the in-out curve. The first render, a resize and reduced motion are instant.
| Prop | Type | Default | Description |
|---|---|---|---|
| rows / columns / values | string[] / string[] / (number | null)[][] | - | As in Heatmap. null is no data, never a zero. |
| min / max | number | 0 / highest | The scale. Pin max to compare grids. |
| cellHeight | number | 28 | Cell height in px. |
| color | string | accent | Any CSS colour. |
| onCellSelect | (cell, value) => void | - | Click, Enter or Space on a cell. |
| columnLabelEvery / legend / format | - | - | As in Heatmap. |
| label | string | - | Names the chart for screen readers and the data table caption. |
| pitch | number | 4 | Cell size in CSS px. A whole number of device pixels, so it stays crisp at 1x and 2x. |
| Motion | - | - | A data change eases for 280ms (slow) with the in-out curve. The first render, a resize and reduced motion are instant. |
What it handles
- 01Fills each cell with a Bayer pattern whose density follows its value, in the accent colour.
- 02Treats null as no data: an empty cell, never a zero.
- 03Moves between cells with the arrow keys and announces row, column and value.
- 04Reuses the Heatmap's scale, level and spoken labels.
States
- Data changes
- Marks ease from the old values to the new, once
- 280ms, in-out
- Pointer or arrow key
- Reads the item in a tooltip and announces it
- 120ms fade
- Resize
- Redraws at the new size, no easing
- none
- Reduced motion
- Values jump; nothing eases
- 0ms
| State | What moves | Timing |
|---|---|---|
| Data changes | Marks ease from the old values to the new, once | 280ms, in-out |
| Pointer or arrow key | Reads the item in a tooltip and announces it | 120ms fade |
| Resize | Redraws at the new size, no easing | none |
| Reduced motion | Values jump; nothing eases | 0ms |
Works with
When to use
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Dither Heatmap to my app and wire it to my own data.
- I need activity by weekday and hour where the pattern is the message. Set that up with the Knowns UI Dither Heatmap.
- Which Dither Heatmap props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "dither-heatmap" }) and search_docs({ query: "dither heatmap" }). Pro props, full examples and source come back once your license key is in the MCP config.