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

Marimekko Chart

Source: Data Visualisation Catalogue - Marimekko Chart

Why This Belongs In The Compiler Gallery

Marimekko charts are a high-value bridge from grouped/stacked bars into mosaic layouts. They use simple rect marks, but both x width and y height are data-derived proportions, so the compiler needs to own the layout.

Data Contract

Each raw row is one category/series value.

FieldTypePurpose
categorycategoricalVariable-width parent column.
seriescategoricalSegment stacked within each category.
valuequantitativeSegment size.
categorySharequantitative, derivedCategory total share of all values.
segmentSharequantitative, derivedSegment share inside the category.
x, y, width, heightquantitative, derivedMosaic segment geometry.

Expected Visual

A faithful first pass should show category columns whose widths encode category totals, with colored stacked segments inside each column encoding within-category composition.

Compiler Mapping

Compiler partMapping
Data sourcecategory-mix raw rows and derived mosaic-segments.
Transformlayout with layoutKind: "mosaic" computes variable-width columns and stacked segment bounds.
Scalescolor: ordinal(series).
LayersRect mosaic segments, centered segment values, category labels, generated color legend.

Faithfulness Notes

The current layout covers the rectangular Marimekko/Mekko family. Follow-ups include axis-like percentage guides, configurable category ordering, label hiding for small segments, and broader mosaic policies for two-dimensional contingency tables.