Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Dot Matrix Chart
Rebuilds the dot-matrix chart with a dot-matrix layout transform, direct point geometry, row labels, and a unit note.
Data Sources
3
Fields
14
Scales
2
Layers
5
Glyphs
41
rect 2 / point 34 / text 5
Build Path
This example is rebuilt from gallery data source category-counts by recipe dotMatrixChart: 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.dotMatrixChart",
"data": [
{
"id": "source_gallery_dotmatrixchart",
"rows": 4
},
{
"id": "source_matrix_dots",
"rows": 34
},
{
"id": "pipeline_unit_note_layer_literal_text",
"rows": 1
}
],
"transforms": [
{
"id": "pipeline_dot_matrix_layout_transform",
"type": "layout",
"input": "source_gallery_dotmatrixchart",
"output": "source_matrix_dots",
"options": {
"count": 12,
"errorMethod": "standardError",
"fit": "contain",
"groupBy": [
"category"
],
"includeMax": true,
"layout": "pipeline_value_dot_matrix_panel_layout",
"layoutKind": "dotMatrix",
"layoutMode": "proportionalAngle",
"mode": "normal",
"order": [],
"paddingInner": 5,
"step": 5,
"value": "value"
}
}
],
"axes": [],
"grids": [],
"legends": [],
"fields": [
"__rowLabel",
"id",
"category",
"value",
"label",
"column",
"cx",
"cy",
"dotIndex",
"r",
"representedValue",
"row",
"tooltip",
"text"
],
"scales": [
{
"id": "pipeline_category_y_y_scale",
"type": "band",
"domain": {
"source": "field",
"data": "source_gallery_dotmatrixchart",
"field": "category",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
},
{
"id": "pipeline_category_color_color_scale",
"type": "ordinal",
"domain": {
"source": "field",
"data": "source_gallery_dotmatrixchart",
"field": "category",
"fields": [],
"includeZero": false,
"order": "input",
"reverse": false,
"symmetric": false
}
}
],
"layers": [
{
"id": "create_chart_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_dot_matrix_panel_layout_surface",
"mark": "rect",
"role": "context"
},
{
"id": "pipeline_value_dot_matrix_dots_layer",
"mark": "point",
"role": "data"
},
{
"id": "pipeline_value_dot_matrix_row_labels_layer",
"mark": "text",
"role": "guide"
},
{
"id": "pipeline_unit_note_layer",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "gallery.dotMatrixChart.scene",
"scales": [
{
"id": "pipeline_category_y_y_scale",
"type": "band",
"domain": [
"Email",
"Search",
"Social",
"Referral"
],
"range": [
306,
34
],
"bandwidth": 47.18367346938775
},
{
"id": "pipeline_category_color_color_scale",
"type": "ordinal",
"domain": [
"Email",
"Search",
"Social",
"Referral"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-orange-9)",
"var(--colors-purple-9)"
]
}
],
"layers": [
{
"id": "create_chart_surface",
"role": "context",
"zIndex": -10,
"glyphs": 1
},
{
"id": "pipeline_value_dot_matrix_panel_layout_surface",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "pipeline_value_dot_matrix_dots_layer",
"role": "data",
"zIndex": 20,
"glyphs": 34
},
{
"id": "pipeline_value_dot_matrix_row_labels_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 4
},
{
"id": "pipeline_unit_note_layer",
"role": "guide",
"zIndex": 20,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
create_chart_surface
pipeline_value_dot_matrix_panel_layout_surface
pipeline_value_dot_matrix_dots_layer
pipeline_value_dot_matrix_row_labels_layer
pipeline_unit_note_layer
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.