Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Area Graph
Ordered values compile to a filled area path and a stronger trend edge.
Data Sources
3
Fields
5
Scales
2
Layers
7
Glyphs
27
line 6 / path 2 / text 17 / point 2
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 values
ChartSpec
{
"id": "catalogue.area-graph",
"data": [
{
"id": "points",
"rows": 12
},
{
"id": "ticks",
"rows": 5
},
{
"id": "endpoints",
"rows": 2
}
],
"transforms": [],
"fields": [
"index",
"label",
"value",
"formatted",
"tooltip"
],
"scales": [
{
"id": "x",
"type": "linear",
"domain": {
"source": "field",
"data": "points",
"field": "index"
}
},
{
"id": "y",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
110
],
"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": "filled-area",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": true,
"closedToY": false,
"curve": "linear",
"sortBy": "index"
}
},
{
"id": "area-edge",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": "index"
}
},
{
"id": "endpoints",
"mark": "point",
"role": "interaction"
},
{
"id": "month-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.area-graph.scene",
"scales": [
{
"id": "x",
"type": "linear",
"domain": [
0,
11
],
"range": [
66,
692
],
"ticks": [
0,
2.75,
5.5,
8.25,
11
]
},
{
"id": "y",
"type": "linear",
"domain": [
0,
110
],
"range": [
278,
24
],
"ticks": [
0,
27.5,
55,
82.5,
110
]
}
],
"layers": [
{
"id": "y-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 5
},
{
"id": "x-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "filled-area",
"role": "data",
"zIndex": 10,
"glyphs": 1
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "area-edge",
"role": "data",
"zIndex": 20,
"glyphs": 1
},
{
"id": "endpoints",
"role": "interaction",
"zIndex": 30,
"glyphs": 2
},
{
"id": "month-labels",
"role": "guide",
"zIndex": 30,
"glyphs": 12
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
y-grid
x-axis
filled-area
y-labels
area-edge
endpoints
month-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.