Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Overview Brush
Weekly revenue and brush state are laid out into data and interaction glyph layers.
Data Sources
4
Fields
10
Scales
2
Layers
6
Glyphs
20
rect 12 / text 8
Build Path
This example is rebuilt from gallery data source weekly-revenue by recipe overview: 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.overview",
"data": [
{
"id": "source_gallery_overview",
"rows": 8
},
{
"id": "pipeline_overview_bars_source",
"rows": 8
},
{
"id": "pipeline_brush_state_source",
"rows": 1
},
{
"id": "pipeline_brush_selection_window_source",
"rows": 1
}
],
"transforms": [],
"axes": [],
"grids": [],
"legends": [],
"fields": [
"__rowLabel",
"id",
"week",
"label",
"value",
"tooltip",
"x0",
"x1",
"endWeek",
"startWeek"
],
"scales": [
{
"id": "pipeline_x_x_scale",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
8
],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_y_y_scale",
"type": "linear",
"domain": {
"source": "field",
"data": "pipeline_overview_bars_source",
"field": "value",
"fields": [],
"includeZero": true,
"order": "input",
"reverse": false,
"symmetric": false
}
}
],
"layers": [
{
"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_overview_bars_layer",
"mark": "rect",
"role": "data"
},
{
"id": "pipeline_selection_window_layer",
"mark": "rect",
"role": "interaction"
},
{
"id": "pipeline_overview_labels_layer",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "gallery.overview.scene",
"scales": [
{
"id": "pipeline_x_x_scale",
"type": "linear",
"domain": [
0,
8
],
"range": [
52,
696
],
"ticks": [
0,
2,
4,
6,
8
]
},
{
"id": "pipeline_y_y_scale",
"type": "linear",
"domain": [
0,
80
],
"range": [
156,
18
],
"ticks": [
0,
20,
40,
60,
80
]
}
],
"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_overview_bars_layer",
"role": "data",
"zIndex": 10,
"glyphs": 8
},
{
"id": "pipeline_selection_window_layer",
"role": "interaction",
"zIndex": 20,
"glyphs": 1
},
{
"id": "pipeline_overview_labels_layer",
"role": "guide",
"zIndex": 30,
"glyphs": 8
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_view_layout_surface
pipeline_plot_layout_surface
pipeline_overview_bars_layer
pipeline_selection_window_layer
pipeline_overview_labels_layer
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.