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

Multi-set Bar Chart

Source: Data Visualisation Catalogue - Multi-set Bar Chart

Multi-set bar chart reference

Multi-set bar chart anatomy

Why This Belongs In The Compiler Gallery

The catalogue describes multi-set bar charts as grouped bars: multiple series plotted on the same axis and grouped into parent categories. This extends the current bar primitive without requiring a new mark type. It is also a necessary counterpart to stacked bars because both encode parent category plus subcategory.

Data Contract

Each data row represents one subcategory bar inside a parent group.

FieldTypePurpose
categorycategoricalParent group.
seriescategoricalBar inside the group.
valuequantitativeBar height or length.
formattedValuetext, optionalValue label and tooltip.
categoryOrderordinal, optionalParent group order.
seriesOrderordinal, optionalOrder inside each group.

Expected Visual

The faithful catalogue version should show bars of equal width clustered by parent category. Bars in a cluster sit side by side and use color to distinguish series. Clusters are separated by a larger gap than bars within the same cluster.

ElementExpected treatment
BarsRects arranged in parent groups with inner series offsets.
Group gapLarger than the gap between sibling bars.
Series colorOrdinal palette keyed by series.
AxisShared quantitative baseline for all series.
LegendNeeded when color encodes series.

Compiler Mapping

Compiler partMapping
Data sourceraw-grouped-bars input table and derived grouped-bars/group-labels tables.
Transformlayout with layoutKind: "groupedBand" derives bar x, width, and group centers.
Scalesy: linear, color: ordinal; x positions currently come from the grouped layout transform.
Layersrect bars, text group labels, text optional values, line baseline/grid.
InteractionHover should expose category, series, value, and source row.

Faithfulness Notes

The gallery implementation now uses compiler-owned grouped layout rather than fixture x/width values in source rows, and the series legend is generated from the ordinal color scale. A future nested band scale would make the layout more general and would let grouped categorical composition share the same guide and scale machinery as simpler bar charts.