Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Arc Diagram
Source-target rows compile into ordered node positions and weighted arc paths.
Data Sources
5
Fields
19
Scales
1
Layers
9
Glyphs
33
rect 7 / path 7 / point 7 / text 12
Build Path
This example is rebuilt from gallery data source flows by recipe arcDiagram: raw table rows -> TabularSource -> pipeline drafts -> analyzeAuthoringDrafts() -> materialized ChartSpec -> compileChart() -> SceneGraph -> SVG. The graph below shows the authored pipeline stage.
Pipeline recipe graph
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
Imported table
ChartSpec
{
"id": "gallery.arcDiagram",
"data": [
{
"id": "source_gallery_arcdiagram",
"rows": 7
},
{
"id": "source_arc_nodes",
"rows": 7
},
{
"id": "source_arc_links",
"rows": 7
},
{
"id": "__guide.pipeline_source_legend_guide",
"rows": 4
},
{
"id": "__guide.pipeline_source_legend_guide.title",
"rows": 1
}
],
"transforms": [
{
"id": "pipeline_arc_node_layout_transform",
"type": "layout",
"input": "source_gallery_arcdiagram",
"output": "source_arc_nodes",
"options": {
"endField": "value",
"errorMethod": "standardError",
"field": "source",
"fit": "contain",
"geometryField": "source",
"groupBy": [
"source"
],
"idField": "source",
"includeMax": false,
"labelField": "source",
"layout": "pipeline_plot_layout",
"layoutKind": "arcDiagramNodes",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": [],
"orderField": "source",
"parentField": "target",
"seriesBy": "target",
"sourceField": "source",
"startField": "target",
"targetField": "target",
"value": "value",
"xField": "target",
"yField": "value"
}
},
{
"id": "pipeline_arc_link_layout_transform",
"type": "layout",
"input": "source_gallery_arcdiagram",
"output": "source_arc_links",
"options": {
"endField": "value",
"errorMethod": "standardError",
"field": "source",
"fit": "contain",
"geometryField": "source",
"groupBy": [
"source"
],
"idField": "source",
"includeMax": false,
"labelField": "source",
"layout": "pipeline_plot_layout",
"layoutKind": "arcDiagramLinks",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": [],
"orderField": "source",
"parentField": "target",
"seriesBy": "target",
"sourceField": "source",
"startField": "target",
"targetField": "target",
"value": "value",
"xField": "target",
"yField": "value"
}
}
],
"axes": [],
"grids": [],
"legends": [
{
"id": "pipeline_source_legend_guide",
"scale": "pipeline_color_color_scale",
"kind": "color",
"title": "Source"
}
],
"fields": [
"__rowLabel",
"id",
"source",
"target",
"value",
"formatted",
"label",
"labelX",
"labelY",
"node",
"r",
"tooltip",
"x",
"y",
"pathD",
"strokeWidth",
"symbolX",
"symbolY",
"text"
],
"scales": [
{
"id": "pipeline_color_color_scale",
"type": "ordinal",
"domain": {
"source": "field",
"data": "source_arc_links",
"field": "source",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
}
],
"layers": [
{
"id": "pipeline_source_legend_guide-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "pipeline_source_legend_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_source_legend_guide-title",
"mark": "text",
"role": "guide"
},
{
"id": "create_chart_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_view_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_plot_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_arc_links_layer",
"mark": "path",
"role": "data",
"path": {
"directD": true,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": ""
}
},
{
"id": "pipeline_nodes_layer",
"mark": "point",
"role": "data"
},
{
"id": "pipeline_node_labels_layer",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "gallery.arcDiagram.scene",
"scales": [
{
"id": "pipeline_color_color_scale",
"type": "ordinal",
"domain": [
"Landing",
"Search",
"Product",
"Cart"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_view_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_plot_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_arc_links_layer",
"role": "data",
"zIndex": 10,
"glyphs": 7
},
{
"id": "pipeline_nodes_layer",
"role": "data",
"zIndex": 20,
"glyphs": 7
},
{
"id": "pipeline_node_labels_layer",
"role": "guide",
"zIndex": 30,
"glyphs": 7
},
{
"id": "pipeline_source_legend_guide-swatches",
"role": "guide",
"zIndex": 40,
"glyphs": 4
},
{
"id": "pipeline_source_legend_guide-labels",
"role": "guide",
"zIndex": 41,
"glyphs": 4
},
{
"id": "pipeline_source_legend_guide-title",
"role": "guide",
"zIndex": 42,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_view_layout_surface
pipeline_plot_layout_surface
pipeline_arc_links_layer
pipeline_nodes_layer
pipeline_node_labels_layer
pipeline_source_legend_guide-swatches
pipeline_source_legend_guide-labels
pipeline_source_legend_guide-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.