Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Span Chart
Start and end values are normalized as intervals before line and endpoint glyphs render change across metrics.
Data Sources
5
Fields
11
Scales
2
Layers
9
Glyphs
43
line 21 / point 10 / text 12
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 metric start/end values
ChartSpec
{
"id": "catalogue.span",
"data": [
{
"id": "metric-ranges",
"rows": 5
},
{
"id": "spans",
"rows": 5
},
{
"id": "__guide.x-grid",
"rows": 7
},
{
"id": "__guide.x",
"rows": 7
},
{
"id": "__guide.y",
"rows": 5
}
],
"transforms": [
{
"id": "metric-spans",
"type": "interval",
"input": "metric-ranges",
"output": "spans",
"options": {
"startField": "previous",
"endField": "current",
"labelField": "metric",
"unit": "point"
}
}
],
"axes": [
{
"id": "x",
"scale": "x",
"orientation": "bottom"
},
{
"id": "y",
"scale": "y",
"orientation": "left"
}
],
"grids": [
{
"id": "x-grid",
"scale": "x",
"orientation": "x"
}
],
"fields": [
"previous",
"current",
"metric",
"start",
"end",
"duration",
"tooltip",
"center",
"durationLabel",
"value",
"label"
],
"scales": [
{
"id": "x",
"type": "linear",
"domain": {
"source": "field",
"data": "spans",
"field": "end",
"min": 32,
"max": 88
}
},
{
"id": "y",
"type": "band",
"domain": {
"source": "field",
"data": "spans",
"field": "metric"
}
}
],
"layers": [
{
"id": "x-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-labels",
"mark": "text",
"role": "guide"
},
{
"id": "span-lines",
"mark": "line",
"role": "data"
},
{
"id": "previous-points",
"mark": "point",
"role": "data"
},
{
"id": "current-points",
"mark": "point",
"role": "data"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.span.scene",
"scales": [
{
"id": "x",
"type": "linear",
"domain": [
32,
88
],
"range": [
112,
722
],
"ticks": [
32,
41.333333333333336,
50.66666666666667,
60,
69.33333333333334,
78.66666666666667,
88
]
},
{
"id": "y",
"type": "band",
"domain": [
"Acquisition",
"Activation",
"Retention",
"Expansion",
"Advocacy"
],
"range": [
28,
284
],
"bandwidth": 27.50413223140496
}
],
"layers": [
{
"id": "x-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 7
},
{
"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": 7
},
{
"id": "span-lines",
"role": "data",
"zIndex": 10,
"glyphs": 5
},
{
"id": "previous-points",
"role": "data",
"zIndex": 16,
"glyphs": 5
},
{
"id": "current-points",
"role": "data",
"zIndex": 18,
"glyphs": 5
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 7
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
x-grid
x-axis
y-axis
x-tick-marks
span-lines
previous-points
current-points
x-labels
y-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.