Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Stacked Area Graph
Raw period/category rows compile into stacked boundaries, then render as filled bands between y0 and y1.
Data Sources
8
Fields
16
Scales
3
Layers
13
Glyphs
54
line 28 / path 6 / text 17 / rect 3
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
Raw area series
ChartSpec
{
"id": "catalogue.stacked-area-graph",
"data": [
{
"id": "raw-area-series",
"rows": 24
},
{
"id": "segments",
"rows": 24
},
{
"id": "__guide.x-grid",
"rows": 8
},
{
"id": "__guide.y-grid",
"rows": 5
},
{
"id": "__guide.x",
"rows": 8
},
{
"id": "__guide.y",
"rows": 5
},
{
"id": "__guide.area-series-legend",
"rows": 3
},
{
"id": "__guide.area-series-legend.title",
"rows": 1
}
],
"transforms": [
{
"id": "stack-area-boundaries",
"type": "stack",
"input": "raw-area-series",
"output": "segments",
"options": {
"order": [
"Subscriptions",
"Services",
"Licensing"
]
}
}
],
"axes": [
{
"id": "x",
"scale": "x",
"orientation": "bottom"
},
{
"id": "y",
"scale": "y",
"orientation": "left",
"tickFormat": {
"suffix": "k",
"maximumFractionDigits": 0
}
}
],
"grids": [
{
"id": "x-grid",
"scale": "x",
"orientation": "x"
},
{
"id": "y-grid",
"scale": "y",
"orientation": "y"
}
],
"legends": [
{
"id": "area-series-legend",
"scale": "color",
"kind": "color",
"title": "Series"
}
],
"fields": [
"period",
"periodIndex",
"series",
"start",
"end",
"value",
"tooltip",
"total",
"label",
"x",
"y",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"scales": [
{
"id": "x",
"type": "band",
"domain": {
"source": "field",
"data": "segments",
"field": "period"
}
},
{
"id": "y",
"type": "linear",
"domain": {
"source": "field",
"data": "segments",
"field": "end",
"includeZero": true,
"padding": 0.04
}
},
{
"id": "color",
"type": "ordinal",
"domain": {
"source": "field",
"data": "segments",
"field": "series"
}
}
],
"layers": [
{
"id": "x-grid",
"mark": "line",
"role": "guide"
},
{
"id": "y-grid",
"mark": "line",
"role": "guide"
},
{
"id": "x-axis",
"mark": "line",
"role": "guide"
},
{
"id": "x-tick-marks",
"mark": "line",
"role": "guide"
},
{
"id": "x-labels",
"mark": "text",
"role": "guide"
},
{
"id": "y-axis",
"mark": "line",
"role": "guide"
},
{
"id": "y-tick-marks",
"mark": "line",
"role": "guide"
},
{
"id": "y-labels",
"mark": "text",
"role": "guide"
},
{
"id": "area-series-legend-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "area-series-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "area-series-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "stacked-area-bands",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": true,
"closedToY": false,
"curve": "smooth",
"groupBy": [
"series"
],
"sortBy": "periodIndex"
}
},
{
"id": "stacked-area-edges",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "smooth",
"groupBy": [
"series"
],
"sortBy": "periodIndex"
}
}
]
}Resolved SceneGraph
{
"scene": "catalogue.stacked-area-graph.scene",
"scales": [
{
"id": "x",
"type": "band",
"domain": [
"Q1",
"Q2",
"Q3",
"Q4",
"Q5",
"Q6",
"Q7",
"Q8"
],
"range": [
72,
692
],
"bandwidth": 69.92481203007519
},
{
"id": "y",
"type": "linear",
"domain": [
-20,
140
],
"range": [
284,
42
],
"ticks": [
-20,
20,
60,
100,
140
]
},
{
"id": "color",
"type": "ordinal",
"domain": [
"Subscriptions",
"Services",
"Licensing"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"layers": [
{
"id": "x-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 8
},
{
"id": "y-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 5
},
{
"id": "x-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "y-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "x-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 8
},
{
"id": "y-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 5
},
{
"id": "stacked-area-bands",
"role": "data",
"zIndex": 10,
"glyphs": 3
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 8
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "stacked-area-edges",
"role": "data",
"zIndex": 20,
"glyphs": 3
},
{
"id": "area-series-legend-swatches",
"role": "guide",
"zIndex": 30,
"glyphs": 3
},
{
"id": "area-series-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 3
},
{
"id": "area-series-legend-title",
"role": "guide",
"zIndex": 32,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
x-grid
y-grid
x-axis
y-axis
x-tick-marks
y-tick-marks
stacked-area-bands
x-labels
y-labels
stacked-area-edges
area-series-legend-swatches
area-series-legend-labels
area-series-legend-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.