Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Heatmap
Rebuilds the catalogue heatmap as band scales, sequential color, labels, and legend.
Data Sources
5
Fields
15
Scales
3
Layers
9
Glyphs
137
rect 61 / text 76
Build Path
This example is rebuilt from gallery data source cells by recipe heatmap: 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.heatmap",
"data": [
{
"id": "source_gallery_heatmap",
"rows": 55
},
{
"id": "source_row_labels",
"rows": 5
},
{
"id": "source_column_labels",
"rows": 11
},
{
"id": "__guide.pipeline_value_legend_guide",
"rows": 4
},
{
"id": "__guide.pipeline_value_legend_guide.title",
"rows": 1
}
],
"transforms": [
{
"id": "pipeline_row_labels_transform",
"type": "aggregate",
"input": "source_gallery_heatmap",
"output": "source_row_labels",
"options": {
"count": 1,
"errorMethod": "standardError",
"fit": "contain",
"groupBy": [
"row"
],
"includeMax": true,
"layoutKind": "",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": []
}
},
{
"id": "pipeline_column_labels_transform",
"type": "aggregate",
"input": "source_gallery_heatmap",
"output": "source_column_labels",
"options": {
"count": 1,
"errorMethod": "standardError",
"fit": "contain",
"groupBy": [
"column"
],
"includeMax": true,
"layoutKind": "",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": []
}
}
],
"axes": [],
"grids": [],
"legends": [
{
"id": "pipeline_value_legend_guide",
"scale": "pipeline_value_color_color_scale",
"kind": "color",
"title": "Value legend"
}
],
"fields": [
"__rowLabel",
"row",
"column",
"value",
"label",
"tooltip",
"id",
"count",
"x",
"y",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"scales": [
{
"id": "pipeline_column_x_x_scale",
"type": "band",
"domain": {
"source": "field",
"data": "source_gallery_heatmap",
"field": "column",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_row_y_y_scale",
"type": "band",
"domain": {
"source": "field",
"data": "source_gallery_heatmap",
"field": "row",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_value_color_color_scale",
"type": "sequential",
"domain": {
"source": "field",
"data": "source_gallery_heatmap",
"field": "value",
"fields": [],
"includeZero": true,
"order": "input",
"reverse": false,
"symmetric": false
}
}
],
"layers": [
{
"id": "pipeline_value_legend_guide-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "pipeline_value_legend_guide-labels",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_value_legend_guide-title",
"mark": "text",
"role": "guide"
},
{
"id": "create_chart_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_heatmap_panel_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_heatmap_cells_layer",
"mark": "rect",
"role": "data"
},
{
"id": "pipeline_value_heatmap_values_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_row_labels_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_column_labels_layer",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "gallery.heatmap.scene",
"scales": [
{
"id": "pipeline_column_x_x_scale",
"type": "band",
"domain": [
"Bar",
"Line",
"Stacked",
"Heatmap",
"Point",
"Histogram",
"Overview",
"Small",
"Map",
"Treemap",
"Table"
],
"range": [
70,
830
],
"bandwidth": 62.18181818181819
},
{
"id": "pipeline_row_y_y_scale",
"type": "band",
"domain": [
"ChartSpec",
"Scales",
"Layers",
"Glyphs",
"Inspector"
],
"range": [
400,
70
],
"bandwidth": 59.4
},
{
"id": "pipeline_value_color_color_scale",
"type": "sequential",
"domain": [
0,
157
],
"range": [
"var(--colors-blue-4)",
"var(--colors-orange-9)"
],
"ticks": [
0,
50,
100,
150
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_value_heatmap_panel_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_value_heatmap_cells_layer",
"role": "data",
"zIndex": 20,
"glyphs": 55
},
{
"id": "pipeline_value_heatmap_values_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 55
},
{
"id": "pipeline_row_labels_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 5
},
{
"id": "pipeline_column_labels_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 11
},
{
"id": "pipeline_value_legend_guide-swatches",
"role": "guide",
"zIndex": 40,
"glyphs": 4
},
{
"id": "pipeline_value_legend_guide-labels",
"role": "guide",
"zIndex": 41,
"glyphs": 4
},
{
"id": "pipeline_value_legend_guide-title",
"role": "guide",
"zIndex": 42,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_value_heatmap_panel_layout_surface
pipeline_value_heatmap_cells_layer
pipeline_value_heatmap_values_layer
pipeline_row_labels_layer
pipeline_column_labels_layer
pipeline_value_legend_guide-swatches
pipeline_value_legend_guide-labels
pipeline_value_legend_guide-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.