Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Marimekko Chart
Category totals set column widths while series shares stack within each column.
Data Sources
5
Fields
21
Scales
1
Layers
7
Glyphs
36
rect 16 / text 20
Data Flow Diagram
Select a glyph to highlight its complete source path.
Scope
Roles
No matching flow nodes
Adjust search, scope, or role filters.
Available Data
Category mix
ChartSpec
{
"id": "catalogue.marimekko",
"data": [
{
"id": "category-mix",
"rows": 12
},
{
"id": "mosaic-segments",
"rows": 12
},
{
"id": "category-labels",
"rows": 4
},
{
"id": "__guide.series-legend",
"rows": 3
},
{
"id": "__guide.series-legend.title",
"rows": 1
}
],
"transforms": [
{
"id": "marimekko-mosaic-layout",
"type": "layout",
"input": "category-mix",
"output": "mosaic-segments",
"options": {
"groupBy": [
"category"
],
"layout": "plot",
"layoutKind": "mosaic",
"seriesBy": "series",
"value": "value"
}
},
{
"id": "marimekko-category-centers",
"type": "layout",
"input": "mosaic-segments",
"output": "category-labels",
"options": {
"groupBy": [
"category"
],
"layoutKind": "groupCenters"
}
}
],
"legends": [
{
"id": "series-legend",
"scale": "color",
"kind": "color",
"title": "Series"
}
],
"fields": [
"category",
"series",
"value",
"categoryShare",
"segmentShare",
"x",
"y",
"width",
"height",
"tooltip",
"categoryCenter",
"groupCenter",
"categoryWidth",
"categoryTotal",
"formatted",
"label",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"scales": [
{
"id": "color",
"type": "ordinal",
"domain": {
"source": "field",
"data": "mosaic-segments",
"field": "series"
}
}
],
"layers": [
{
"id": "series-legend-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "series-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "series-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "plot-frame",
"mark": "rect",
"role": "context"
},
{
"id": "mosaic-segments",
"mark": "rect",
"role": "data"
},
{
"id": "segment-values",
"mark": "text",
"role": "guide"
},
{
"id": "category-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.marimekko.scene",
"scales": [
{
"id": "color",
"type": "ordinal",
"domain": [
"Online",
"Retail",
"Partner"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"layers": [
{
"id": "plot-frame",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "mosaic-segments",
"role": "data",
"zIndex": 10,
"glyphs": 12
},
{
"id": "segment-values",
"role": "guide",
"zIndex": 20,
"glyphs": 12
},
{
"id": "series-legend-swatches",
"role": "guide",
"zIndex": 30,
"glyphs": 3
},
{
"id": "category-labels",
"role": "guide",
"zIndex": 30,
"glyphs": 4
},
{
"id": "series-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 3
},
{
"id": "series-legend-title",
"role": "guide",
"zIndex": 32,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
plot-frame
mosaic-segments
segment-values
series-legend-swatches
category-labels
series-legend-labels
series-legend-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.