Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Proportional Area Chart
Comparable circles use area-correct radius mapping so visual area represents the underlying quantity.
Data Sources
4
Fields
12
Scales
2
Layers
7
Glyphs
23
line 1 / point 8 / text 14
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
Proportional area values
ChartSpec
{
"id": "catalogue.proportional-area",
"data": [
{
"id": "areas",
"rows": 5
},
{
"id": "__guide.x",
"rows": 5
},
{
"id": "__guide.relative-size-legend",
"rows": 3
},
{
"id": "__guide.relative-size-legend.title",
"rows": 1
}
],
"transforms": [],
"axes": [
{
"id": "x",
"scale": "x",
"orientation": "bottom"
}
],
"legends": [
{
"id": "relative-size-legend",
"scale": "r",
"kind": "size",
"title": "Relative size",
"values": [
25,
60,
100
]
}
],
"fields": [
"category",
"value",
"formatted",
"tooltip",
"label",
"x",
"y",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"scales": [
{
"id": "x",
"type": "band",
"domain": {
"source": "field",
"data": "areas",
"field": "category"
}
},
{
"id": "r",
"type": "sqrt",
"domain": {
"source": "field",
"data": "areas",
"field": "value",
"includeZero": true
}
}
],
"layers": [
{
"id": "x-axis",
"mark": "line",
"role": "guide"
},
{
"id": "x-labels",
"mark": "text",
"role": "guide"
},
{
"id": "relative-size-legend-symbols",
"mark": "point",
"role": "guide"
},
{
"id": "relative-size-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "relative-size-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "areas",
"mark": "point",
"role": "data"
},
{
"id": "value-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.proportional-area.scene",
"scales": [
{
"id": "x",
"type": "band",
"domain": [
"Core",
"Growth",
"Seasonal",
"Premium",
"Wholesale"
],
"range": [
50,
616
],
"bandwidth": 84.10441767068272
},
{
"id": "r",
"type": "sqrt",
"domain": [
0,
96
],
"range": [
10,
44
],
"ticks": [
0,
24,
48,
72,
96
]
}
],
"layers": [
{
"id": "x-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "areas",
"role": "data",
"zIndex": 10,
"glyphs": 5
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "value-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "relative-size-legend-symbols",
"role": "guide",
"zIndex": 30,
"glyphs": 3
},
{
"id": "relative-size-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 3
},
{
"id": "relative-size-legend-title",
"role": "guide",
"zIndex": 32,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
x-axis
areas
x-labels
value-labels
relative-size-legend-symbols
relative-size-legend-labels
relative-size-legend-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.