Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Bar Chart
Rebuilds the catalogue bar chart as band/value scale chunks plus rect marks.
Data Sources
4
Fields
6
Scales
2
Layers
7
Glyphs
105
rect 33 / line 36 / text 36
Build Path
This example is rebuilt from gallery data source bars by recipe bar: 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.bar",
"data": [
{
"id": "source_gallery_bar",
"rows": 31
},
{
"id": "__guide.pipeline_ygrid_guide",
"rows": 5
},
{
"id": "__guide.pipeline_xaxis_guide",
"rows": 31
},
{
"id": "__guide.pipeline_yaxis_guide",
"rows": 5
}
],
"transforms": [],
"axes": [
{
"id": "pipeline_xaxis_guide",
"scale": "pipeline_label_x_x_scale",
"orientation": "bottom"
},
{
"id": "pipeline_yaxis_guide",
"scale": "pipeline_value_y_y_scale",
"orientation": "left"
}
],
"grids": [
{
"id": "pipeline_ygrid_guide",
"scale": "pipeline_value_y_y_scale",
"orientation": "y"
}
],
"legends": [],
"fields": [
"__rowLabel",
"label",
"value",
"formatted",
"tooltip",
"id"
],
"scales": [
{
"id": "pipeline_label_x_x_scale",
"type": "band",
"domain": {
"source": "field",
"data": "source_gallery_bar",
"field": "label",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_value_y_y_scale",
"type": "linear",
"domain": {
"source": "field",
"data": "source_gallery_bar",
"field": "value",
"fields": [],
"includeZero": true,
"order": "input",
"reverse": false,
"symmetric": false
}
}
],
"layers": [
{
"id": "pipeline_ygrid_guide",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_xaxis_guide-tick-marks",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_xaxis_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_yaxis_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "create_chart_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_by_label_panel_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_by_label_bars_layer",
"mark": "rect",
"role": "data"
}
]
}Resolved SceneGraph
{
"scene": "gallery.bar.scene",
"scales": [
{
"id": "pipeline_label_x_x_scale",
"type": "band",
"domain": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31
],
"range": [
70,
830
],
"bandwidth": 22.06451612903226
},
{
"id": "pipeline_value_y_y_scale",
"type": "linear",
"domain": [
0,
20
],
"range": [
400,
70
],
"ticks": [
0,
5,
10,
15,
20
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_ygrid_guide",
"role": "guide",
"zIndex": 0,
"glyphs": 5
},
{
"id": "pipeline_value_by_label_panel_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_xaxis_guide-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 31
},
{
"id": "pipeline_xaxis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 31
},
{
"id": "pipeline_yaxis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "pipeline_value_by_label_bars_layer",
"role": "data",
"zIndex": 20,
"glyphs": 31
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_ygrid_guide
pipeline_value_by_label_panel_layout_surface
pipeline_xaxis_guide-tick-marks
pipeline_xaxis_guide-labels
pipeline_yaxis_guide-labels
pipeline_value_by_label_bars_layer
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.