Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Open-High-Low-Close Chart
Rebuilds the catalogue OHLC chart with financial interval rows and scaled line ticks.
Data Sources
7
Fields
23
Scales
3
Layers
14
Glyphs
43
rect 5 / line 26 / text 12
Build Path
This example is rebuilt from gallery data source price-ticks by recipe openHighLowClose: 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.openHighLowClose",
"data": [
{
"id": "source_gallery_openhighlowclose",
"rows": 30
},
{
"id": "source_ohlc",
"rows": 6
},
{
"id": "__guide.pipeline_ygrid_guide",
"rows": 6
},
{
"id": "__guide.pipeline_xaxis_guide",
"rows": 2
},
{
"id": "__guide.pipeline_yaxis_guide",
"rows": 6
},
{
"id": "__guide.pipeline_direction_legend_guide",
"rows": 2
},
{
"id": "__guide.pipeline_direction_legend_guide.title",
"rows": 1
}
],
"transforms": [
{
"id": "pipeline_ohlc_intervals_transform",
"type": "financialInterval",
"input": "source_gallery_openhighlowclose",
"output": "source_ohlc",
"options": {
"count": 1,
"errorMethod": "standardError",
"fit": "contain",
"groupBy": [
"date"
],
"includeMax": true,
"layoutKind": "",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": [],
"orderField": "sequence",
"value": "price"
}
}
],
"axes": [
{
"id": "pipeline_xaxis_guide",
"scale": "pipeline_date_x_x_scale",
"orientation": "bottom"
},
{
"id": "pipeline_yaxis_guide",
"scale": "pipeline_high_y_y_scale",
"orientation": "left"
}
],
"grids": [
{
"id": "pipeline_ygrid_guide",
"scale": "pipeline_high_y_y_scale",
"orientation": "y"
}
],
"legends": [
{
"id": "pipeline_direction_legend_guide",
"scale": "pipeline_direction_color_color_scale",
"kind": "color",
"title": "Session move"
}
],
"fields": [
"__rowLabel",
"price",
"id",
"date",
"sequence",
"change",
"changePercent",
"close",
"direction",
"high",
"low",
"open",
"range",
"tooltip",
"value",
"label",
"x",
"y",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"scales": [
{
"id": "pipeline_date_x_x_scale",
"type": "time",
"domain": {
"source": "field",
"data": "source_ohlc",
"field": "date",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_high_y_y_scale",
"type": "linear",
"domain": {
"source": "field",
"data": "source_ohlc",
"field": "high",
"fields": [
"open",
"high",
"low",
"close"
],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_direction_color_color_scale",
"type": "ordinal",
"domain": {
"source": "field",
"data": "source_ohlc",
"field": "direction",
"fields": [],
"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": "pipeline_direction_legend_guide-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "pipeline_direction_legend_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_direction_legend_guide-title",
"mark": "text",
"role": "guide"
},
{
"id": "create_chart_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_price_ohlc_panel_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_price_ohlc_panel_layout_frame",
"mark": "rect",
"role": "guide"
},
{
"id": "pipeline_price_ohlc_panel_layout_label",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_price_ohlc_high_low_stems_layer",
"mark": "line",
"role": "data"
},
{
"id": "pipeline_price_ohlc_open_ticks_layer",
"mark": "line",
"role": "data"
},
{
"id": "pipeline_price_ohlc_close_ticks_layer",
"mark": "line",
"role": "data"
}
]
}Resolved SceneGraph
{
"scene": "gallery.openHighLowClose.scene",
"scales": [
{
"id": "pipeline_date_x_x_scale",
"type": "time",
"domain": [
"2026-05-04",
"2026-05-12"
],
"range": [
70,
830
],
"ticks": [
1778112000000,
1778716800000
]
},
{
"id": "pipeline_high_y_y_scale",
"type": "linear",
"domain": [
80,
105
],
"range": [
372,
42
],
"ticks": [
80,
85,
90,
95,
100,
105
]
},
{
"id": "pipeline_direction_color_color_scale",
"type": "ordinal",
"domain": [
"Gain",
"Loss"
],
"range": [
"var(--colors-green-9)",
"var(--colors-red-9)",
"var(--colors-gray-8)"
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_ygrid_guide",
"role": "guide",
"zIndex": 0,
"glyphs": 6
},
{
"id": "pipeline_price_ohlc_panel_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_price_ohlc_panel_layout_frame",
"role": "guide",
"zIndex": 1,
"glyphs": 1
},
{
"id": "pipeline_price_ohlc_panel_layout_label",
"role": "guide",
"zIndex": 2,
"glyphs": 1
},
{
"id": "pipeline_xaxis_guide-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 2
},
{
"id": "pipeline_xaxis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 2
},
{
"id": "pipeline_yaxis_guide-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 6
},
{
"id": "pipeline_price_ohlc_high_low_stems_layer",
"role": "data",
"zIndex": 20,
"glyphs": 6
},
{
"id": "pipeline_price_ohlc_open_ticks_layer",
"role": "data",
"zIndex": 20,
"glyphs": 6
},
{
"id": "pipeline_price_ohlc_close_ticks_layer",
"role": "data",
"zIndex": 20,
"glyphs": 6
},
{
"id": "pipeline_direction_legend_guide-swatches",
"role": "guide",
"zIndex": 40,
"glyphs": 2
},
{
"id": "pipeline_direction_legend_guide-labels",
"role": "guide",
"zIndex": 41,
"glyphs": 2
},
{
"id": "pipeline_direction_legend_guide-title",
"role": "guide",
"zIndex": 42,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_ygrid_guide
pipeline_price_ohlc_panel_layout_surface
pipeline_price_ohlc_panel_layout_frame
pipeline_price_ohlc_panel_layout_label
pipeline_xaxis_guide-tick-marks
pipeline_xaxis_guide-labels
pipeline_yaxis_guide-labels
pipeline_price_ohlc_high_low_stems_layer
pipeline_price_ohlc_open_ticks_layer
pipeline_price_ohlc_close_ticks_layer
pipeline_direction_legend_guide-swatches
pipeline_direction_legend_guide-labels
pipeline_direction_legend_guide-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.