Static documentation

Data Visualisation Catalogue Gallery

Rendered markdown notes for the catalogue review, compiler mapping, implementation tracker, and chart method specs.

38 chart methods
10 with reference assets
43 documents

Heatmap

Source: Data Visualisation Catalogue - Heatmap

Heatmap reference

Heatmap anatomy

Why This Belongs In The Compiler Gallery

The catalogue heatmap is a matrix: row category by column category, with cell color encoding a categorical or quantitative value. The compiler already has a heatmap gallery example using band scales, rect cells, text labels, and a sequential color scale.

Data Contract

Each data row represents one matrix cell.

FieldTypePurpose
rowcategoricalMatrix row.
columncategoricalMatrix column.
valuequantitative or categoricalEncoded cell value.
formattedValuetext, optionalIn-cell label and tooltip value.
rowOrderordinal, optionalExplicit row ordering.
columnOrderordinal, optionalExplicit column ordering.

Expected Visual

A faithful catalogue heatmap should render a rectangular grid with one colored cell at every row/column intersection. Row labels sit along one side and column labels sit along the top or bottom. If the value is quantitative, the color ramp needs a legend or clear scale. In-cell values are acceptable and help compensate for the imprecision of color comparison.

ElementExpected treatment
CellsEqual-size rects aligned into a matrix.
ColorSequential ramp for quantitative values or ordinal palette for categories.
LabelsRow and column labels outside cells; optional values centered inside cells.
GapsSmall, consistent gutters between cells.
LegendStrongly recommended for quantitative ramps.

Compiler Mapping

Compiler partMapping
Data sourcecells table plus derived row/column label tables.
Transformaggregate or layout transform to derive unique row/column labels.
Scalesx: band, y: band, color: sequential or color: ordinal.
Layersrect cells, text row labels, text column labels, optional text cell values, generated color legend.
InteractionCell hover should expose row, column, value, and source row.

Faithfulness Notes

The current sequential scale maps values to discrete color steps, not a continuous gradient, and the legend is generated as stepped swatches from the same scale. That can still match the catalogue's "solid colours for value ranges" option. A continuous color interpolator would be needed only if the gallery target requires smooth gradient interpolation.