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

Proportional Area Chart

Source: Data Visualisation Catalogue - Proportional Area Chart

Why This Belongs In The Compiler Gallery

The catalogue proportional area chart compares quantities with circle area. It is a focused test for the compiler's sqrt scale and the new generated size legend: both the data circles and the legend symbols must resolve from the same radius scale.

Data Contract

Each data row represents one category.

FieldTypePurpose
categorycategoricalCircle label and x-axis category.
valuequantitativeQuantity encoded by circle area.
formattedtextVisible value label.
tooltiptextHover/inspection label.

Expected Visual

The chart should show comparable circles on a shared categorical baseline. Circle radius must be area-correct, so the visual area, not diameter, represents the underlying value.

ElementExpected treatment
CirclesPoint glyphs with radius resolved through a sqrt scale.
Category labelsGenerated band-axis labels below the circles.
Size legendGenerated guide symbols from the same radius scale.
ValuesShort centered labels only because this gallery example is sparse.

Compiler Mapping

Compiler partMapping
Data sourceareas table with raw category/value rows.
TransformNone; radius is not precomputed in data.
Scalesx: band(category), r: sqrt(value).
Layerspoint circles plus text value labels.
GuidesGenerated x-axis labels and generated size legend.

Faithfulness Notes

The core chart is compiler-owned: source rows do not contain radius values, and the size legend is generated from the resolved r scale. Remaining polish is label collision handling for denser examples.