Skip to content

Dither Heatmap

The Heatmap's grid with every cell filled by a Bayer pattern whose density follows its value.

On this page
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
Default0 / highest
The scale. Pin max to compare grids.
cellHeight
number
Default28
Cell height in px.
color
string
Defaultaccent
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
Default4
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

  1. 01Fills each cell with a Bayer pattern whose density follows its value, in the accent colour.
  2. 02Treats null as no data: an empty cell, never a zero.
  3. 03Moves between cells with the arrow keys and announces row, column and value.
  4. 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

Works with

When to use

When to use

  • Activity by weekday and hour where the pattern is the message.

When not to use

  • Exact values per cell: use the plain grid with a tooltip: use Heatmap.
  • A grid of status colours: use Heatmap.

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.

Need help?

Stuck on Dither Heatmap, or found something off? We read every message.