Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Scatterplot
Paired observations compile to point glyphs for relationship and outlier analysis.
Data Sources
7
Fields
9
Scales
3
Layers
10
Glyphs
42
line 17 / path 1 / point 12 / 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
Scatter observations
ChartSpec
{
"id": "catalogue.scatterplot",
"data": [
{
"id": "points",
"rows": 12
},
{
"id": "outlier-labels",
"rows": 2
},
{
"id": "trend",
"rows": 2
},
{
"id": "__guide.x-grid",
"rows": 5
},
{
"id": "__guide.y-grid",
"rows": 5
},
{
"id": "__guide.x",
"rows": 5
},
{
"id": "__guide.y",
"rows": 5
}
],
"transforms": [
{
"id": "scatter-regression",
"type": "regression",
"input": "points",
"output": "trend",
"options": {
"xField": "x",
"yField": "y",
"start": 12,
"end": 88
}
}
],
"axes": [
{
"id": "x",
"scale": "x",
"orientation": "bottom"
},
{
"id": "y",
"scale": "y",
"orientation": "left"
}
],
"grids": [
{
"id": "x-grid",
"scale": "x",
"orientation": "x"
},
{
"id": "y-grid",
"scale": "y",
"orientation": "y"
}
],
"fields": [
"label",
"category",
"x",
"y",
"tooltip",
"slope",
"intercept",
"rSquared",
"value"
],
"scales": [
{
"id": "x",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
90
],
"includeZero": true
}
},
{
"id": "y",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
90
],
"includeZero": true
}
},
{
"id": "color",
"type": "ordinal",
"domain": {
"source": "field",
"data": "points",
"field": "category"
}
}
],
"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-labels",
"mark": "text",
"role": "guide"
},
{
"id": "best-fit",
"mark": "path",
"role": "guide",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": "x"
}
},
{
"id": "points",
"mark": "point",
"role": "data"
},
{
"id": "outlier-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.scatterplot.scene",
"scales": [
{
"id": "x",
"type": "linear",
"domain": [
0,
90
],
"range": [
58,
686
],
"ticks": [
0,
22.5,
45,
67.5,
90
]
},
{
"id": "y",
"type": "linear",
"domain": [
0,
90
],
"range": [
296,
24
],
"ticks": [
0,
22.5,
45,
67.5,
90
]
},
{
"id": "color",
"type": "ordinal",
"domain": [
"Core",
"Growth",
"Scale",
"Outlier"
],
"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": 5
},
{
"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": 5
},
{
"id": "best-fit",
"role": "guide",
"zIndex": 5,
"glyphs": 1
},
{
"id": "points",
"role": "data",
"zIndex": 10,
"glyphs": 12
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "outlier-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 2
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
x-grid
y-grid
x-axis
y-axis
x-tick-marks
best-fit
points
x-labels
y-labels
outlier-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.