Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Stream Graph
Raw period/category rows compile into stream-centered stack boundaries before smooth filled bands render flow over time.
Data Sources
8
Fields
16
Scales
3
Layers
12
Glyphs
57
line 30 / path 4 / text 19 / rect 4
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 stream series
ChartSpec
{
"id": "catalogue.stream-graph",
"data": [
{
"id": "raw-stream-series",
"rows": 36
},
{
"id": "segments",
"rows": 36
},
{
"id": "__guide.x-grid",
"rows": 9
},
{
"id": "__guide.y-grid",
"rows": 5
},
{
"id": "__guide.x",
"rows": 9
},
{
"id": "__guide.y",
"rows": 5
},
{
"id": "__guide.stream-series-legend",
"rows": 4
},
{
"id": "__guide.stream-series-legend.title",
"rows": 1
}
],
"transforms": [
{
"id": "stream-stack-boundaries",
"type": "stack",
"input": "raw-stream-series",
"output": "segments",
"options": {
"order": [
"Search",
"Social",
"Retail",
"Partner"
],
"mode": "stream"
}
}
],
"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": "stream-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",
"fields": [
"start",
"end"
],
"includeZero": true,
"padding": 0.08
}
},
{
"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": "stream-series-legend-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "stream-series-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "stream-series-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "stream-bands",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": true,
"closedToY": false,
"curve": "smooth",
"groupBy": [
"series"
],
"sortBy": "periodIndex"
}
}
]
}Resolved SceneGraph
{
"scene": "catalogue.stream-graph.scene",
"scales": [
{
"id": "x",
"type": "band",
"domain": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep"
],
"range": [
68,
726
],
"bandwidth": 64.625
},
{
"id": "y",
"type": "linear",
"domain": [
-150,
150
],
"range": [
294,
46
],
"ticks": [
-150,
-75,
0,
75,
150
]
},
{
"id": "color",
"type": "ordinal",
"domain": [
"Search",
"Social",
"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": "x-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 9
},
{
"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": 9
},
{
"id": "y-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 5
},
{
"id": "stream-bands",
"role": "data",
"zIndex": 10,
"glyphs": 4
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 9
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "stream-series-legend-swatches",
"role": "guide",
"zIndex": 30,
"glyphs": 4
},
{
"id": "stream-series-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 4
},
{
"id": "stream-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
stream-bands
x-labels
y-labels
stream-series-legend-swatches
stream-series-legend-labels
stream-series-legend-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.