Timetable
Source: Data Visualisation Catalogue - Timetable
Why This Belongs In The Compiler Gallery
Timetables are grid layouts with duration-aware blocks. The compiler now derives grid cells, day headers, and event rectangles from raw day/start/end event rows.
Data Contract
Each raw row represents one scheduled event.
| Field | Type | Purpose |
|---|---|---|
day | categorical | Timetable column. |
start, end | quantitative | Start and end hour. |
title | text | Event label. |
kind | categorical | Event color key. |
x, y, width, height | quantitative, derived | Event block geometry. |
Expected Visual
The faithful catalogue version shows a day/time grid with event blocks spanning their scheduled duration. Labels sit inside blocks and color separates event types.
Compiler Mapping
| Compiler part | Mapping |
|---|---|
| Data source | events and derived timetable-grid, day-headers, and timetable-events. |
| Transform | layout with timetableGrid, timetableDayHeaders, and timetableEvents layout kinds. |
| Scales | Ordinal color by event kind. |
| Layers | Grid rects, day labels, event rects, and event labels. |
Faithfulness Notes
The first pass proves compiler-owned timetable geometry. Remaining work is collision-aware event labels, overlapping events, all-day rows, and richer time-axis labeling.