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

Scatterplot

Source: Data Visualisation Catalogue - Scatterplot

Scatterplot reference

Scatterplot anatomy

Why This Belongs In The Compiler Gallery

The catalogue scatterplot places points on Cartesian axes to reveal relationships between two variables. That is the compiler's most direct use of the point glyph with two linear scales. It should be the canonical point-mark example before more complex bubble and map variants.

Data Contract

Each data row represents one observation.

FieldTypePurpose
xquantitativeHorizontal variable.
yquantitativeVertical variable.
id or labeltextObservation identity.
categorycategorical, optionalPoint color grouping.
sizequantitative, optionalOptional radius, though bubble chart should own size-as-area semantics.
trend outputderivedRegression endpoints, slope, intercept, and r-squared generated from raw points when requested.

Expected Visual

A faithful scatterplot should show discrete points positioned by two quantitative axes. The reference anatomy emphasizes variables, outliers, correlations, and optional trend lines. The first gallery version should include axis guides and an optional line of best fit only if it is supplied as modeled data.

ElementExpected treatment
PointsSame radius by default, with opacity for overlap.
AxesLinear x and y scales.
OutliersNaturally visible by position; optional labels for notable points.
Trend lineOptional path layer from compiler-generated regression output.
ColorOptional categorical field, not decorative.

Compiler Mapping

Compiler partMapping
Data sourcepoints table and derived trend table.
Transformregression creates trend endpoints from raw x/y observations.
Scalesx: linear, y: linear, optional color: ordinal.
Layerspoint observations, optional path trend line, line grid, text axis/point labels.
InteractionPoint hover should expose x, y, label, category, and source row.

Faithfulness Notes

Do not conflate scatterplot and bubble chart. Scatterplot points should default to a constant radius; bubble charts should use radius to encode a third variable by area.