Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Error Bars
Rebuilds the catalogue error-bars chart with error interval rows, caps, and mean points.
Data Sources
5
Fields
13
Scales
2
Layers
12
Glyphs
36
rect 3 / line 20 / text 9 / point 4
Build Path
This example is rebuilt from gallery data source observations by recipe errorBars: 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.errorBars",
"data": [
{
"id": "source_gallery_errorbars",
"rows": 24
},
{
"id": "source_error_intervals",
"rows": 4
},
{
"id": "__guide.pipeline_ygrid_guide",
"rows": 4
},
{
"id": "__guide.pipeline_xaxis_guide",
"rows": 4
},
{
"id": "__guide.pipeline_yaxis_guide",
"rows": 4
}
],
"transforms": [
{
"id": "pipeline_error_intervals_transform",
"type": "errorInterval",
"input": "source_gallery_errorbars",
"output": "source_error_intervals",
"options": {
"count": 1,
"errorMethod": "ci95",
"fit": "contain",
"groupBy": [
"segment"
],
"includeMax": true,
"layoutKind": "",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": [],
"value": "value"
}
}
],
"axes": [
{
"id": "pipeline_xaxis_guide",
"scale": "pipeline_segment_x_x_scale",
"orientation": "bottom"
},
{
"id": "pipeline_yaxis_guide",
"scale": "pipeline_mean_y_y_scale",
"orientation": "left"
}
],
"grids": [
{
"id": "pipeline_ygrid_guide",
"scale": "pipeline_mean_y_y_scale",
"orientation": "y"
}
],
"legends": [],
"fields": [
"__rowLabel",
"value",
"id",
"segment",
"count",
"error",
"lower",
"mean",
"standardDeviation",
"standardError",
"tooltip",
"upper",
"label"
],
"scales": [
{
"id": "pipeline_segment_x_x_scale",
"type": "band",
"domain": {
"source": "field",
"data": "source_error_intervals",
"field": "segment",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_mean_y_y_scale",
"type": "linear",
"domain": {
"source": "field",
"data": "source_error_intervals",
"field": "mean",
"fields": [
"lower",
"mean",
"upper"
],
"includeZero": false,
"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_error_bars_panel_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_error_bars_panel_layout_frame",
"mark": "rect",
"role": "guide"
},
{
"id": "pipeline_value_error_bars_panel_layout_label",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_value_error_bars_stems_layer",
"mark": "line",
"role": "data"
},
{
"id": "pipeline_value_error_bars_lower_caps_layer",
"mark": "line",
"role": "data"
},
{
"id": "pipeline_value_error_bars_upper_caps_layer",
"mark": "line",
"role": "data"
},
{
"id": "pipeline_value_error_bars_means_layer",
"mark": "point",
"role": "data"
}
]
}Resolved SceneGraph
{
"scene": "gallery.errorBars.scene",
"scales": [
{
"id": "pipeline_segment_x_x_scale",
"type": "band",
"domain": [
"Control",
"Variant",
"Retained",
"Expansion"
],
"range": [
70,
830
],
"bandwidth": 171
},
{
"id": "pipeline_mean_y_y_scale",
"type": "linear",
"domain": [
45,
80
],
"range": [
400,
70
],
"ticks": [
50,
60,
70,
80
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_ygrid_guide",
"role": "guide",
"zIndex": 0,
"glyphs": 4
},
{
"id": "pipeline_value_error_bars_panel_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_value_error_bars_panel_layout_frame",
"role": "guide",
"zIndex": 1,
"glyphs": 1
},
{
"id": "pipeline_value_error_bars_panel_layout_label",
"role": "guide",
"zIndex": 2,
"glyphs": 1
},
{
"id": "pipeline_xaxis_guide-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 4
},
{
"id": "pipeline_xaxis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_yaxis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_value_error_bars_stems_layer",
"role": "data",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_value_error_bars_lower_caps_layer",
"role": "data",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_value_error_bars_upper_caps_layer",
"role": "data",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_value_error_bars_means_layer",
"role": "data",
"zIndex": 20,
"glyphs": 4
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_ygrid_guide
pipeline_value_error_bars_panel_layout_surface
pipeline_value_error_bars_panel_layout_frame
pipeline_value_error_bars_panel_layout_label
pipeline_xaxis_guide-tick-marks
pipeline_xaxis_guide-labels
pipeline_yaxis_guide-labels
pipeline_value_error_bars_stems_layer
pipeline_value_error_bars_lower_caps_layer
pipeline_value_error_bars_upper_caps_layer
pipeline_value_error_bars_means_layer
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.