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

Donut Chart

Source: Data Visualisation Catalogue - Donut Chart

Why This Belongs In The Compiler Gallery

Donut charts reuse pie-sector geometry with an inner radius. This verifies that generated path data can represent annular sectors, not only wedge sectors.

Data Contract

Each raw row is one category total.

FieldTypePurpose
regioncategoricalSector category and legend label.
valuequantitativeQuantity encoded as angular share.
pathDtext, derivedGenerated annular sector path.
share, percentLabelquantitative/text, derivedSector share and visible percentage.
labelX, labelYquantitative, derivedLabel anchor coordinates.

Compiler Mapping

Compiler partMapping
Data sourceregional-sales raw rows and derived sectors.
Transformlayout with layoutKind: "polarSectors" and a non-zero innerRadius.
Scalescolor: ordinal(region).
LayersAnnular path sectors, center summary text, and percentage labels.
GuidesGenerated color legend.

Faithfulness Notes

The annular paths are compiler-generated from raw values. Remaining polish is leader-line labels for thin sectors and center-content layout policy.