Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Line Graph
Ordered values compile to a trend path and optional inspected point markers.
Data Sources
3
Fields
5
Scales
2
Layers
6
Glyphs
30
line 6 / path 1 / text 17 / point 6
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
Monthly compiler throughput
ChartSpec
{
"id": "gallery.line",
"data": [
{
"id": "points",
"rows": 12
},
{
"id": "ticks",
"rows": 5
},
{
"id": "sampled",
"rows": 6
}
],
"transforms": [
{
"id": "sample-inspection-points",
"type": "sample",
"input": "points",
"output": "sampled"
}
],
"fields": [
"index",
"label",
"value",
"tooltip",
"sampleIndex"
],
"scales": [
{
"id": "x",
"type": "linear",
"domain": {
"source": "field",
"data": "points",
"field": "index"
}
},
{
"id": "y",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
100
],
"includeZero": true
}
}
],
"layers": [
{
"id": "y-grid",
"mark": "line",
"role": "guide"
},
{
"id": "y-labels",
"mark": "text",
"role": "guide"
},
{
"id": "x-axis",
"mark": "line",
"role": "guide"
},
{
"id": "trend",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": "index"
}
},
{
"id": "sample-points",
"mark": "point",
"role": "interaction"
},
{
"id": "month-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "gallery.line.scene",
"scales": [
{
"id": "x",
"type": "linear",
"domain": [
0,
11
],
"range": [
64,
692
],
"ticks": [
0,
2.75,
5.5,
8.25,
11
]
},
{
"id": "y",
"type": "linear",
"domain": [
0,
100
],
"range": [
262,
20
],
"ticks": [
0,
25,
50,
75,
100
]
}
],
"layers": [
{
"id": "y-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 5
},
{
"id": "x-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "trend",
"role": "data",
"zIndex": 10,
"glyphs": 1
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "sample-points",
"role": "interaction",
"zIndex": 20,
"glyphs": 6
},
{
"id": "month-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 12
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
y-grid
x-axis
trend
y-labels
sample-points
month-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.