Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Order Value Distribution
Raw order values are grouped into bins, then rendered as vertical rect geometry.
Data Sources
6
Fields
8
Scales
2
Layers
8
Glyphs
47
line 19 / rect 17 / text 11
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
Raw order values
ChartSpec
{
"id": "gallery.histogram",
"data": [
{
"id": "orders",
"rows": 125
},
{
"id": "bins",
"rows": 17
},
{
"id": "__guide.x-grid",
"rows": 6
},
{
"id": "__guide.y-grid",
"rows": 5
},
{
"id": "__guide.x",
"rows": 6
},
{
"id": "__guide.y",
"rows": 5
}
],
"transforms": [
{
"id": "order-value-bins",
"type": "bin",
"input": "orders",
"output": "bins",
"options": {
"start": 0,
"end": 17,
"step": 1
}
}
],
"axes": [
{
"id": "x",
"scale": "x",
"orientation": "bottom"
},
{
"id": "y",
"scale": "y",
"orientation": "left"
}
],
"grids": [
{
"id": "x-grid",
"scale": "x",
"orientation": "x"
},
{
"id": "y-grid",
"scale": "y",
"orientation": "y"
}
],
"fields": [
"label",
"min",
"max",
"count",
"formatted",
"tooltip",
"orderValue",
"value"
],
"scales": [
{
"id": "x",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
17
],
"includeZero": true
}
},
{
"id": "y",
"type": "linear",
"domain": {
"source": "values",
"values": [
0,
20
],
"includeZero": true
}
}
],
"layers": [
{
"id": "x-grid",
"mark": "line",
"role": "guide"
},
{
"id": "y-grid",
"mark": "line",
"role": "guide"
},
{
"id": "x-axis",
"mark": "line",
"role": "guide"
},
{
"id": "x-tick-marks",
"mark": "line",
"role": "guide"
},
{
"id": "x-labels",
"mark": "text",
"role": "guide"
},
{
"id": "y-axis",
"mark": "line",
"role": "guide"
},
{
"id": "y-labels",
"mark": "text",
"role": "guide"
},
{
"id": "bins",
"mark": "rect",
"role": "data"
}
]
}Resolved SceneGraph
{
"scene": "gallery.histogram.scene",
"scales": [
{
"id": "x",
"type": "linear",
"domain": [
0,
17
],
"range": [
64,
692
],
"ticks": [
0,
3.4,
6.8,
10.2,
13.6,
17
]
},
{
"id": "y",
"type": "linear",
"domain": [
0,
20
],
"range": [
266,
24
],
"ticks": [
0,
5,
10,
15,
20
]
}
],
"layers": [
{
"id": "x-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 6
},
{
"id": "y-grid",
"role": "guide",
"zIndex": 0,
"glyphs": 5
},
{
"id": "x-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "y-axis",
"role": "guide",
"zIndex": 0,
"glyphs": 1
},
{
"id": "x-tick-marks",
"role": "guide",
"zIndex": 5,
"glyphs": 6
},
{
"id": "bins",
"role": "data",
"zIndex": 10,
"glyphs": 17
},
{
"id": "x-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 6
},
{
"id": "y-labels",
"role": "guide",
"zIndex": 20,
"glyphs": 5
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
x-grid
y-grid
x-axis
y-axis
x-tick-marks
bins
x-labels
y-labels
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.