WarUI

Heatmap Color Scale Formatting

GRID-A18-F16P1baselinePlanned

Colors cell backgrounds on a two- or three-stop scale (diverging or sequential), with colorblind-safe palettes included. The scope can be a column, a row, the whole pivot body, or a custom range. Useful for spotting patterns in pivot matrices.

Planned. This page shows the specification from issue #198. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Pivot of Plant × Week, count of Defects, with a sequential heatmap over the whole body.

Expected behavior

Cell colors update to match the palette and scope. The legend shows the domain and stops. Text color switches automatically for readability. Totals are excluded by default.

Planned API surface

heatmap.enabledheatmap.paletteheatmap.stopsheatmap.scopeheatmap.domainheatmap.legendregisterPalette()

Acceptance criteria

  • Color interpolation is documented as being in a perceptual color space, and test colors match within tolerance. (pending)
  • Text keeps at least 4.5:1 contrast on every heatmap background. (pending)
  • Scope changes recompute the domains correctly. (pending)
  • The legend reflects the active domain and midpoint. (pending)