Chart Compiler Gallery
ChartSpec data compiles into resolved scales, layer specs, glyph definitions, scene graph nodes, and a single SVG renderer.
Calendar
Daily values derive calendar month cell geometry before heatmap-style rect marks render the pattern.
Data Sources
5
Fields
20
Scales
1
Layers
8
Glyphs
80
rect 36 / text 44
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
Daily activity
ChartSpec
{
"id": "catalogue.calendar",
"data": [
{
"id": "daily-activity",
"rows": 31
},
{
"id": "weekday-labels",
"rows": 7
},
{
"id": "calendar-cells",
"rows": 31
},
{
"id": "__guide.calendar-value-legend",
"rows": 4
},
{
"id": "__guide.calendar-value-legend.title",
"rows": 1
}
],
"transforms": [
{
"id": "calendar-month-layout",
"type": "layout",
"input": "daily-activity",
"output": "calendar-cells",
"options": {
"field": "date",
"idPrefix": "calendar-day",
"layout": "plot",
"layoutKind": "calendarMonth",
"paddingInner": 5,
"value": "value"
}
}
],
"legends": [
{
"id": "calendar-value-legend",
"scale": "color",
"kind": "color",
"title": "Daily value",
"values": [
0,
25,
50,
75
]
}
],
"fields": [
"date",
"value",
"weekday",
"week",
"x",
"y",
"width",
"height",
"tooltip",
"label",
"day",
"weekdayLabel",
"month",
"centerX",
"centerY",
"symbolX",
"symbolY",
"labelX",
"labelY",
"text"
],
"scales": [
{
"id": "color",
"type": "sequential",
"domain": {
"source": "field",
"data": "calendar-cells",
"field": "value",
"includeZero": true
}
}
],
"layers": [
{
"id": "calendar-value-legend-swatches",
"mark": "rect",
"role": "guide"
},
{
"id": "calendar-value-legend-labels",
"mark": "text",
"role": "guide"
},
{
"id": "calendar-value-legend-title",
"mark": "text",
"role": "guide"
},
{
"id": "month-frame",
"mark": "rect",
"role": "context"
},
{
"id": "month-title",
"mark": "text",
"role": "guide"
},
{
"id": "weekday-labels",
"mark": "text",
"role": "guide"
},
{
"id": "day-cells",
"mark": "rect",
"role": "data"
},
{
"id": "day-numbers",
"mark": "text",
"role": "guide"
}
]
}Resolved SceneGraph
{
"scene": "catalogue.calendar.scene",
"scales": [
{
"id": "color",
"type": "sequential",
"domain": [
0,
82
],
"range": [
"var(--colors-blue-3)",
"var(--colors-blue-5)",
"var(--colors-blue-7)",
"var(--colors-blue-9)",
"var(--colors-blue-11)"
],
"ticks": [
0,
20.5,
41,
61.5,
82
]
}
],
"layers": [
{
"id": "month-frame",
"role": "context",
"zIndex": 0,
"glyphs": 1
},
{
"id": "month-title",
"role": "guide",
"zIndex": 5,
"glyphs": 1
},
{
"id": "weekday-labels",
"role": "guide",
"zIndex": 10,
"glyphs": 7
},
{
"id": "day-cells",
"role": "data",
"zIndex": 20,
"glyphs": 31
},
{
"id": "calendar-value-legend-swatches",
"role": "guide",
"zIndex": 30,
"glyphs": 4
},
{
"id": "day-numbers",
"role": "guide",
"zIndex": 30,
"glyphs": 31
},
{
"id": "calendar-value-legend-labels",
"role": "guide",
"zIndex": 31,
"glyphs": 4
},
{
"id": "calendar-value-legend-title",
"role": "guide",
"zIndex": 32,
"glyphs": 1
}
]
}Glyph Data Tree
Full parameter lineage for the active compiler surface.
month-frame
month-title
weekday-labels
day-cells
calendar-value-legend-swatches
day-numbers
calendar-value-legend-labels
calendar-value-legend-title
Glyph Inspector
Select a glyph in the chart to inspect resolved params and lineage.