Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Circle Packing
Hierarchy normalization feeds a first-pass packed-circle layout so the example no longer carries precomputed circle geometry.
Data Sources
3
Fields
21
Scales
1
Layers
2
Glyphs
20
point 10 / text 10
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
Hierarchy rows
ChartSpec
{
"id": "catalogue.circle-packing",
"data": [
{
"id": "hierarchy-rows",
"rows": 10
},
{
"id": "hierarchy",
"rows": 10
},
{
"id": "circles",
"rows": 10
}
],
"transforms": [
{
"id": "circle-hierarchy",
"type": "hierarchy",
"input": "hierarchy-rows",
"output": "hierarchy",
"options": {
"idField": "node",
"parentField": "parent",
"labelField": "label",
"value": "value"
}
},
{
"id": "circle-pack-layout",
"type": "layout",
"input": "hierarchy",
"output": "circles",
"options": {
"layout": "plot",
"layoutKind": "circlePack"
}
}
],
"fields": [
"label",
"parentId",
"depth",
"aggregateValue",
"cx",
"cy",
"r",
"tooltip",
"node",
"parent",
"value",
"childCount",
"isLeaf",
"rootId",
"order",
"pathLabel",
"formatted",
"labelX",
"labelY",
"displayLabel",
"labelOpacity"
],
"scales": [
{
"id": "depthColor",
"type": "ordinal",
"domain": {
"source": "field",
"data": "circles",
"field": "depth"
}
}
],
"layers": [
{
"id": "packed-circles",
"mark": "point",
"role": "data"
},
{
"id": "circle-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.circle-packing.scene",
"scales": [
{
"id": "depthColor",
"type": "ordinal",
"domain": [
0,
1,
2
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"layers": [
{
"id": "packed-circles",
"role": "data",
"zIndex": 10,
"glyphs": 10
},
{
"id": "circle-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 10
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
packed-circles
circle-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.