Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Product Table
Raw product metrics and column config derive row positions, headers, and formatted cells.
Data Sources
6
Fields
21
Scales
1
Layers
12
Glyphs
40
rect 9 / line 1 / text 30
Build Path
This example is rebuilt from gallery data source product-metrics by recipe table: 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.table",
"data": [
{
"id": "source_gallery_table",
"rows": 5
},
{
"id": "pipeline_table_product_rows_source",
"rows": 5
},
{
"id": "pipeline_column_config_source",
"rows": 5
},
{
"id": "pipeline_table_headers_source",
"rows": 5
},
{
"id": "pipeline_table_frame_layer_constants_source",
"rows": 1
},
{
"id": "pipeline_header_rule_layer_constants_source",
"rows": 1
}
],
"transforms": [],
"axes": [],
"grids": [],
"legends": [],
"fields": [
"__rowLabel",
"id",
"product",
"category",
"revenue",
"margin",
"returns",
"centerY",
"formattedMargin",
"formattedReturns",
"formattedRevenue",
"tooltip",
"y",
"label",
"width",
"x",
"height",
"x1",
"x2",
"y1",
"y2"
],
"scales": [
{
"id": "pipeline_rowfill_color_scale",
"type": "ordinal",
"domain": {
"source": "field",
"data": "pipeline_table_product_rows_source",
"field": "category",
"fields": [],
"includeZero": false,
"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_table_frame_layer",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_header_rule_layer",
"mark": "line",
"role": "guide"
},
{
"id": "pipeline_row_backgrounds_layer",
"mark": "rect",
"role": "data"
},
{
"id": "pipeline_headers_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_product_cells_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_category_cells_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_revenue_cells_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_margin_cells_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_return_cells_layer",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "gallery.table.scene",
"scales": [
{
"id": "pipeline_rowfill_color_scale",
"type": "ordinal",
"domain": [
"Outdoor",
"Home",
"Beauty",
"Electronics",
"Grocery"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"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_table_frame_layer",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_header_rule_layer",
"role": "guide",
"zIndex": 2,
"glyphs": 1
},
{
"id": "pipeline_row_backgrounds_layer",
"role": "data",
"zIndex": 5,
"glyphs": 5
},
{
"id": "pipeline_headers_layer",
"role": "guide",
"zIndex": 10,
"glyphs": 5
},
{
"id": "pipeline_product_cells_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "pipeline_category_cells_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "pipeline_revenue_cells_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "pipeline_margin_cells_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "pipeline_return_cells_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 5
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_view_layout_surface
pipeline_plot_layout_surface
pipeline_table_frame_layer
pipeline_header_rule_layer
pipeline_row_backgrounds_layer
pipeline_headers_layer
pipeline_product_cells_layer
pipeline_category_cells_layer
pipeline_revenue_cells_layer
pipeline_margin_cells_layer
pipeline_return_cells_layer
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.