Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Bubble Chart
Two quantitative axes position each bubble while circle area represents a third measure.
Data Sources
9
Fields
14
Scales
4
Layers
14
Glyphs
51
line 17 / point 11 / 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
Segment bubbles
ChartSpec
{
"id": "catalogue.bubble-chart",
"data": [
{
"id": "bubbles",
"rows": 8
},
{
"id": "__guide.x-grid",
"rows": 5
},
{
"id": "__guide.y-grid",
"rows": 5
},
{
"id": "__guide.x",
"rows": 5
},
{
"id": "__guide.y",
"rows": 5
},
{
"id": "__guide.region-legend",
"rows": 4
},
{
"id": "__guide.region-legend.title",
"rows": 1
},
{
"id": "__guide.account-size-legend",
"rows": 3
},
{
"id": "__guide.account-size-legend.title",
"rows": 1
}
],
"transforms": [],
"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"
}
],
"legends": [
{
"id": "region-legend",
"scale": "color",
"kind": "color",
"title": "Region"
},
{
"id": "account-size-legend",
"scale": "r",
"kind": "size",
"title": "Accounts",
"values": [
250,
650,
1050
]
}
],
"fields": [
"region",
"segment",
"x",
"y",
"size",
"formattedSize",
"tooltip",
"value",
"label",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"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": "r",
"type": "sqrt",
"domain": {
"source": "field",
"data": "bubbles",
"field": "size",
"includeZero": true
}
},
{
"id": "color",
"type": "ordinal",
"domain": {
"source": "field",
"data": "bubbles",
"field": "region"
}
}
],
"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": "region-legend-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "region-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "region-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "account-size-legend-symbols",
"mark": "point",
"role": "guide"
},
{
"id": "account-size-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "account-size-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "bubbles",
"mark": "point",
"role": "data"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.bubble-chart.scene",
"scales": [
{
"id": "x",
"type": "linear",
"domain": [
0,
90
],
"range": [
58,
652
],
"ticks": [
0,
22.5,
45,
67.5,
90
]
},
{
"id": "y",
"type": "linear",
"domain": [
0,
90
],
"range": [
316,
56
],
"ticks": [
0,
22.5,
45,
67.5,
90
]
},
{
"id": "r",
"type": "sqrt",
"domain": [
0,
1040
],
"range": [
9,
29
],
"ticks": [
0,
260,
520,
780,
1040
]
},
{
"id": "color",
"type": "ordinal",
"domain": [
"North",
"South",
"West",
"East"
],
"range": [
"var(--colors-red-8)",
"var(--colors-orange-8)",
"var(--colors-blue-8)",
"var(--colors-green-8)"
]
}
],
"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": "bubbles",
"role": "data",
"zIndex": 10,
"glyphs": 8
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "region-legend-swatches",
"role": "guide",
"zIndex": 30,
"glyphs": 4
},
{
"id": "account-size-legend-symbols",
"role": "guide",
"zIndex": 30,
"glyphs": 3
},
{
"id": "region-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 4
},
{
"id": "account-size-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 3
},
{
"id": "region-legend-title",
"role": "guide",
"zIndex": 32,
"glyphs": 1
},
{
"id": "account-size-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
bubbles
x-labels
y-labels
region-legend-swatches
account-size-legend-symbols
region-legend-labels
account-size-legend-labels
region-legend-title
account-size-legend-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.