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

Bubble Chart

Source: Data Visualisation Catalogue - Bubble Chart

Bubble chart reference

Bubble chart anatomy

Why This Belongs In The Compiler Gallery

The catalogue defines bubble charts as scatterplots with circle area used for an additional variable. The compiler's point glyph already supports cx, cy, r, fill, stroke, and opacity, so this is a direct fit and a useful test for multi-channel quantitative encoding.

Data Contract

Each data row represents one bubble.

FieldTypePurpose
xquantitativeHorizontal position.
yquantitativeVertical position.
sizequantitativeQuantity encoded by circle area.
labeltextTooltip or visible label.
categorycategorical, optionalFill color grouping.
timetemporal, optionalAnimation frame or filter.
formattedSizetext, optionalTooltip display for the size value.

Expected Visual

The chart should place circles on a Cartesian grid. Circle position encodes two variables and circle area encodes the third. The catalogue specifically warns that circle sizes must be based on area, not raw radius or diameter, so the radius scale should use sqrt(value) or an equivalent area-correct mapping.

ElementExpected treatment
BubblesCircles with radius derived from area-scaled values.
AxesTwo quantitative linear axes.
ColorOptional categorical fill; do not add color unless it encodes a field.
OverlapUse opacity and stroke to keep overlapping bubbles readable.
LabelsPrefer hover/tooltips for dense charts; visible labels only for sparse examples.

Compiler Mapping

Compiler partMapping
Data sourcebubbles table.
TransformNo radius precomputation needed for the current gallery example.
Scalesx: linear, y: linear, r: sqrt(size), color: ordinal.
Layerspoint bubbles, optional line grid, optional text labels.
InteractionHover should expose x, y, size, category, and source row.

Faithfulness Notes

The gallery implementation uses a first-class sqrt radius scale, so raw size values map to area-correct circle radii without a fixture radius field. The size legend is now generated from that same radius scale. Remaining polish is overlap/collision handling for denser bubble charts.