Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Dot Matrix Chart
Count values derive repeated dot positions so each category reads as a unit grid.
Data Sources
2
Fields
11
Scales
2
Layers
3
Glyphs
39
text 5 / point 34
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
Category counts
ChartSpec
{
"id": "catalogue.dot-matrix",
"data": [
{
"id": "category-counts",
"rows": 4
},
{
"id": "matrix-dots",
"rows": 34
}
],
"transforms": [
{
"id": "dot-matrix-layout",
"type": "layout",
"input": "category-counts",
"output": "matrix-dots",
"options": {
"count": 12,
"groupBy": [
"category"
],
"layout": "plot",
"layoutKind": "dotMatrix",
"paddingInner": 5,
"step": 5,
"value": "value"
}
}
],
"fields": [
"category",
"value",
"representedValue",
"cx",
"cy",
"r",
"tooltip",
"label",
"dotIndex",
"column",
"row"
],
"scales": [
{
"id": "category",
"type": "band",
"domain": {
"source": "field",
"data": "category-counts",
"field": "category"
}
},
{
"id": "color",
"type": "ordinal",
"domain": {
"source": "field",
"data": "category-counts",
"field": "category"
}
}
],
"layers": [
{
"id": "row-labels",
"mark": "text",
"role": "guide"
},
{
"id": "matrix-dots",
"mark": "point",
"role": "data"
},
{
"id": "unit-note",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.dot-matrix.scene",
"scales": [
{
"id": "category",
"type": "band",
"domain": [
"Email",
"Search",
"Social",
"Referral"
],
"range": [
34,
306
],
"bandwidth": 47.18367346938775
},
{
"id": "color",
"type": "ordinal",
"domain": [
"Email",
"Search",
"Social",
"Referral"
],
"range": [
"var(--colors-blue-9)",
"var(--colors-green-9)",
"var(--colors-amber-9)",
"var(--colors-purple-9)",
"var(--colors-red-9)"
]
}
],
"layers": [
{
"id": "row-labels",
"role": "guide",
"zIndex": 5,
"glyphs": 4
},
{
"id": "matrix-dots",
"role": "data",
"zIndex": 20,
"glyphs": 34
},
{
"id": "unit-note",
"role": "guide",
"zIndex": 30,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
row-labels
matrix-dots
unit-note
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.