Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Sunburst Diagram
A parent-child table compiles into radial hierarchy sectors rather than pre-authored path strings.
Data Sources
3
Fields
24
Scales
1
Layers
2
Glyphs
18
path 9 / text 9
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.sunburst-diagram",
"data": [
{
"id": "hierarchy-rows",
"rows": 10
},
{
"id": "hierarchy",
"rows": 10
},
{
"id": "sectors",
"rows": 9
}
],
"transforms": [
{
"id": "sunburst-hierarchy",
"type": "hierarchy",
"input": "hierarchy-rows",
"output": "hierarchy",
"options": {
"idField": "node",
"parentField": "parent",
"labelField": "label",
"value": "value"
}
},
{
"id": "sunburst-sector-layout",
"type": "layout",
"input": "hierarchy",
"output": "sectors",
"options": {
"innerRadius": 34,
"layout": "plot",
"layoutKind": "sunburstSectors",
"outerRadius": 156,
"paddingInner": 0.8
}
}
],
"fields": [
"label",
"parentId",
"depth",
"aggregateValue",
"pathD",
"startAngle",
"endAngle",
"innerRadius",
"outerRadius",
"share",
"tooltip",
"node",
"parent",
"value",
"childCount",
"isLeaf",
"rootId",
"order",
"pathLabel",
"formatted",
"labelX",
"labelY",
"displayLabel",
"labelOpacity"
],
"scales": [
{
"id": "color",
"type": "ordinal",
"domain": {
"source": "field",
"data": "sectors",
"field": "label"
}
}
],
"layers": [
{
"id": "sunburst-sectors",
"mark": "path",
"role": "data",
"path": {
"directD": true,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"groupBy": [
"id"
]
}
},
{
"id": "sector-labels",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.sunburst-diagram.scene",
"scales": [
{
"id": "color",
"type": "ordinal",
"domain": [
"Revenue",
"Subscriptions",
"Services",
"Retention",
"Renewals",
"Success",
"Expansion",
"Add-ons",
"Enterprise"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"layers": [
{
"id": "sunburst-sectors",
"role": "data",
"zIndex": 10,
"glyphs": 9
},
{
"id": "sector-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 9
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
sunburst-sectors
sector-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.