Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
FD Gas Approval
Reproduction of the FlowingData/NYT gas prices versus presidential approval chart with shaded periods and annotation layers.
Data Sources
20
Fields
40
Scales
3
Layers
25
Glyphs
359
rect 4 / line 13 / path 8 / text 22 / point 312
Build Path
This example is rebuilt from gallery data source gas-approval-periods by recipe flowingDataGasApproval: 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.flowingDataGasApproval",
"data": [
{
"id": "source_gallery_flowingdatagasapproval",
"rows": 191
},
{
"id": "pipeline_source_metadata_source",
"rows": 1
},
{
"id": "pipeline_inflation_adjusted_average_gas_price_series_source",
"rows": 130
},
{
"id": "pipeline_presidential_approval_rolling_average_series_source",
"rows": 182
},
{
"id": "pipeline_highlighted_presidential_period_source",
"rows": 1
},
{
"id": "pipeline_masked_gas_annotation_shade_rows_source",
"rows": 19
},
{
"id": "pipeline_masked_approval_annotation_shade_rows_source",
"rows": 19
},
{
"id": "pipeline_panel_titles_source",
"rows": 2
},
{
"id": "pipeline_annotation_text_rows_source",
"rows": 6
},
{
"id": "pipeline_annotation_arrow_paths_source",
"rows": 2
},
{
"id": "pipeline_annotation_arrowhead_segments_source",
"rows": 4
},
{
"id": "pipeline_manual_year_labels_source",
"rows": 5
},
{
"id": "pipeline_latest_gas_price_label_source",
"rows": 1
},
{
"id": "pipeline_latest_approval_label_source",
"rows": 1
},
{
"id": "pipeline_gas_baseline_layer_constants_source",
"rows": 1
},
{
"id": "pipeline_approval_baseline_layer_constants_source",
"rows": 1
},
{
"id": "__guide.pipeline_gas_y_grid_guide",
"rows": 4
},
{
"id": "__guide.pipeline_approval_y_grid_guide",
"rows": 3
},
{
"id": "__guide.pipeline_gas_y_axis_guide",
"rows": 4
},
{
"id": "__guide.pipeline_approval_y_axis_guide",
"rows": 3
}
],
"transforms": [],
"axes": [
{
"id": "pipeline_gas_y_axis_guide",
"scale": "pipeline_gasy_y_scale",
"orientation": "left"
},
{
"id": "pipeline_approval_y_axis_guide",
"scale": "pipeline_approvaly_y_scale",
"orientation": "left"
}
],
"grids": [
{
"id": "pipeline_gas_y_grid_guide",
"scale": "pipeline_gasy_y_scale",
"orientation": "y"
},
{
"id": "pipeline_approval_y_grid_guide",
"scale": "pipeline_approvaly_y_scale",
"orientation": "y"
}
],
"legends": [],
"fields": [
"__rowLabel",
"date",
"gas_price",
"gas_price_avg",
"approval",
"rolling_approval",
"tooltip",
"id",
"year",
"series",
"tooltipeyebrow",
"tooltiptitle",
"tooltipbody",
"tooltipaccentcolor",
"articleUrl",
"desktopImageUrl",
"extractedOn",
"nytArticleUrl",
"sourceDataset",
"approvalRolling",
"gasPrice",
"gasPriceRolling",
"tooltipAccentColor",
"tooltipBody",
"tooltipEyebrow",
"tooltipTitle",
"endDate",
"label",
"startDate",
"fill",
"text",
"x",
"y",
"fontWeight",
"pathD",
"x1",
"x2",
"y1",
"y2",
"value"
],
"scales": [
{
"id": "pipeline_x_x_scale",
"type": "time",
"domain": {
"source": "values",
"values": [
"1977-01-01",
"2026-03-31"
],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_gasy_y_scale",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
6
],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_approvaly_y_scale",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
100
],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
}
],
"layers": [
{
"id": "pipeline_gas_y_grid_guide",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_approval_y_grid_guide",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_gas_y_axis_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_approval_y_axis_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "create_chart_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_view_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_gasplot_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_approvalplot_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_gas_bush_period_shade_layer",
"mark": "path",
"role": "context",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": "date"
}
},
{
"id": "pipeline_approval_bush_period_shade_layer",
"mark": "path",
"role": "context",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": "date"
}
},
{
"id": "pipeline_gas_baseline_layer",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_approval_baseline_layer",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_gas_price_area_layer",
"mark": "path",
"role": "context",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"groupBy": [
"series"
],
"sortBy": "date"
}
},
{
"id": "pipeline_approval_rating_area_layer",
"mark": "path",
"role": "context",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"groupBy": [
"series"
],
"sortBy": "date"
}
},
{
"id": "pipeline_gas_price_line_layer",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"groupBy": [
"series"
],
"sortBy": "date"
}
},
{
"id": "pipeline_approval_rating_line_layer",
"mark": "path",
"role": "data",
"path": {
"directD": false,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"groupBy": [
"series"
],
"sortBy": "date"
}
},
{
"id": "pipeline_panel_titles_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_annotation_text_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_annotation_arrows_layer",
"mark": "path",
"role": "guide",
"path": {
"directD": true,
"areaBand": false,
"closedToY": false,
"curve": "linear",
"sortBy": ""
}
},
{
"id": "pipeline_annotation_arrowheads_layer",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_year_labels_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_gas_endpoint_label_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_approval_endpoint_label_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_gas_inspection_points_layer",
"mark": "point",
"role": "interaction"
},
{
"id": "pipeline_approval_inspection_points_layer",
"mark": "point",
"role": "interaction"
}
]
}Resolved SceneGraph
{
"scene": "gallery.flowingDataGasApproval.scene",
"scales": [
{
"id": "pipeline_x_x_scale",
"type": "time",
"domain": [
"1977-01-01",
"2026-04-01"
],
"range": [
86,
846
],
"ticks": [
315532800000,
631152000000,
946684800000,
1262304000000,
1577836800000
]
},
{
"id": "pipeline_gasy_y_scale",
"type": "linear",
"domain": [
0,
6
],
"range": [
328,
70
],
"ticks": [
0,
2,
4,
6
]
},
{
"id": "pipeline_approvaly_y_scale",
"type": "linear",
"domain": [
0,
100
],
"range": [
678,
420
],
"ticks": [
0,
20,
40,
60,
80,
100
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_gas_y_grid_guide",
"role": "guide",
"zIndex": 0,
"glyphs": 4
},
{
"id": "pipeline_approval_y_grid_guide",
"role": "guide",
"zIndex": 0,
"glyphs": 3
},
{
"id": "pipeline_view_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_gasplot_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_approvalplot_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_gas_baseline_layer",
"role": "guide",
"zIndex": 5,
"glyphs": 1
},
{
"id": "pipeline_approval_baseline_layer",
"role": "guide",
"zIndex": 5,
"glyphs": 1
},
{
"id": "pipeline_gas_price_area_layer",
"role": "context",
"zIndex": 10,
"glyphs": 1
},
{
"id": "pipeline_approval_rating_area_layer",
"role": "context",
"zIndex": 10,
"glyphs": 1
},
{
"id": "pipeline_gas_bush_period_shade_layer",
"role": "context",
"zIndex": 12,
"glyphs": 1
},
{
"id": "pipeline_approval_bush_period_shade_layer",
"role": "context",
"zIndex": 12,
"glyphs": 1
},
{
"id": "pipeline_gas_y_axis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_approval_y_axis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 3
},
{
"id": "pipeline_gas_price_line_layer",
"role": "data",
"zIndex": 20,
"glyphs": 1
},
{
"id": "pipeline_approval_rating_line_layer",
"role": "data",
"zIndex": 20,
"glyphs": 1
},
{
"id": "pipeline_panel_titles_layer",
"role": "guide",
"zIndex": 35,
"glyphs": 2
},
{
"id": "pipeline_year_labels_layer",
"role": "guide",
"zIndex": 35,
"glyphs": 5
},
{
"id": "pipeline_gas_inspection_points_layer",
"role": "interaction",
"zIndex": 35,
"glyphs": 130
},
{
"id": "pipeline_approval_inspection_points_layer",
"role": "interaction",
"zIndex": 35,
"glyphs": 182
},
{
"id": "pipeline_gas_endpoint_label_layer",
"role": "guide",
"zIndex": 36,
"glyphs": 1
},
{
"id": "pipeline_approval_endpoint_label_layer",
"role": "guide",
"zIndex": 36,
"glyphs": 1
},
{
"id": "pipeline_annotation_arrows_layer",
"role": "guide",
"zIndex": 38,
"glyphs": 2
},
{
"id": "pipeline_annotation_arrowheads_layer",
"role": "guide",
"zIndex": 39,
"glyphs": 4
},
{
"id": "pipeline_annotation_text_layer",
"role": "guide",
"zIndex": 40,
"glyphs": 6
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_gas_y_grid_guide
pipeline_approval_y_grid_guide
pipeline_view_layout_surface
pipeline_gasplot_layout_surface
pipeline_approvalplot_layout_surface
pipeline_gas_baseline_layer
pipeline_approval_baseline_layer
pipeline_gas_price_area_layer
pipeline_approval_rating_area_layer
pipeline_gas_bush_period_shade_layer
pipeline_approval_bush_period_shade_layer
pipeline_gas_y_axis_guide-labels
pipeline_approval_y_axis_guide-labels
pipeline_gas_price_line_layer
pipeline_approval_rating_line_layer
pipeline_panel_titles_layer
pipeline_year_labels_layer
pipeline_gas_inspection_points_layer
pipeline_approval_inspection_points_layer
pipeline_gas_endpoint_label_layer
pipeline_approval_endpoint_label_layer
pipeline_annotation_arrows_layer
pipeline_annotation_arrowheads_layer
pipeline_annotation_text_layer
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.