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

Circle Packing

Source: Data Visualisation Catalogue - Circle Packing

Why This Belongs In The Compiler Gallery

Circle packing is a hierarchy layout problem. The visible marks are circles, but the useful compiler capability is normalizing parent-child rows into aggregate hierarchy values and deriving nested circle positions and radii.

Data Contract

Each raw row is one hierarchy node.

FieldTypePurpose
nodecategoricalStable node id.
parentcategorical/nullParent node id; null identifies the root.
labeltextVisible node label.
valuequantitativeLeaf metric used for aggregate sizing.
aggregateValue, depth, childCountderivedHierarchy normalization output.
cx, cy, rquantitative, derivedPacked circle geometry.

Compiler Mapping

Compiler partMapping
Data sourceRaw hierarchy-rows, normalized hierarchy, and derived circles.
Transformhierarchy normalizes parent-child rows; layout with layoutKind: "circlePack" derives circle geometry.
ScalesOrdinal depth color.
LayersPoint glyphs render circles; text glyphs render labels where circles are large enough.

Faithfulness Notes

This is a first-pass deterministic circle-pack layout. It establishes compiler-owned hierarchy aggregation and nested circle output, but it is not yet a full front-chain packing engine with optimal sibling placement.