Graflume · Alpha
Timeline / Range · Basic implementation · Common features
Compare the start and end of tasks or events on one time axis. Start with only the required data and family encoding. Expand the code to run the same example. Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time.
Chart family · Default families
Timeline / Range
Compare the start and end of tasks or events on one time axis.
- Quick API
timeline()- Browser snapshot
graflume- mark
timeline- Presets
- 3
Basic implementation
The smallest runnable chart
Start with only the required data and family encoding. Expand the code to run the same example.
Basic example
Compare the start and end of tasks or events on one time axis.
StatusLoading
minimal-implementation
Loading
Basic example · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Common features
Features shared by every chart
Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time. Hover over a data mark. On supported charts, move the pointer along the axis to see the nearest value. All exact values are available in the table below.
Header
Add a chart title and supporting description inside the visualization.
StatusLoading
header
Loading
Header · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"title": {
"subtitle": "Timeline uses runnable data and options to demonstrate Gantt; lane packing and grouping.",
"text": "Timeline / Range"
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"title": {
"subtitle": "Timeline uses runnable data and options to demonstrate Gantt; lane packing and grouping.",
"text": "Timeline / Range"
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Tooltip
Reveal exact values from a mark or axis position. Authors can choose locale-aware date/time styles and a time zone with declarative options.
StatusLoading
tooltip
Loading
Tooltip · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"axis": "y",
"fields": [
{
"dateStyle": "long",
"field": "start",
"format": "date",
"label": "Start",
"timeZone": "UTC"
},
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"dateStyle": "long",
"field": "end",
"format": "date",
"label": "End",
"timeZone": "UTC"
}
],
"title": "Timeline / Range · Tooltip",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"axis": "y",
"fields": [
{
"dateStyle": "long",
"field": "start",
"format": "date",
"label": "Start",
"timeZone": "UTC"
},
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"dateStyle": "long",
"field": "end",
"format": "date",
"label": "End",
"timeZone": "UTC"
}
],
"title": "Timeline / Range · Tooltip",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Theme
Apply the current built-in theme from the selector and update every active example together.
StatusLoading
theme
Loading
Theme · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Legend
Explain the visual meaning of layers, categories, or continuous values.
StatusLoading
legend
- Legend:
legend · layers · one series
Loading
Legend · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Timeline / Range · Legend",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Timeline / Range · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Timeline / Range · Legend",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Timeline / Range · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Highlight
Emphasize a representative datum or spatial position to guide inspection.
StatusLoading
highlight
- Point and range highlights:
highlights[] · datum · category
Loading
Highlight · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Accessibility"
}
}
],
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Accessibility"
}
}
],
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Callout
Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
StatusLoading
callout
- Custom callouts:
annotations[] · datum · category · callout · placement:auto
Loading
Callout · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "category",
"type": "datum",
"value": "Accessibility"
},
"text": "Point and range highlights · 2026-01-19"
}
],
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"controls": {
"annotations": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
}
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "category",
"type": "datum",
"value": "Accessibility"
},
"text": "Point and range highlights · 2026-01-19"
}
],
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"controls": {
"annotations": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
}
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Selection
Select and toggle data, then clear it from the background or Escape key.
StatusLoading
selection
- Interactive selection:
selection · multiple · toggle
Loading
Selection · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "category",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "category",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}View controls
Show or hide zoom, pan, reset, projection, fullscreen, and PNG export one menu at a time. Set controls: false to remove the entire toolbar.
StatusLoading
controls
Loading
View controls · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}Accessibility
Pair ARIA descriptions and keyboard guidance with a semantic data table.
StatusLoading
accessibility
Loading
Accessibility · Row data
Row data and zero-copy TypedArray columns share one data contract.
starttemporal | categoryordinal | endtemporal |
|---|---|---|
| 2026-01-01 | Research | 2026-01-09 |
| 2026-01-05 | Data design | 2026-01-16 |
| 2026-01-12 | Prototype | 2026-01-25 |
| 2026-01-19 | Accessibility | 2026-02-02 |
| 2026-01-27 | Validation | 2026-02-10 |
| 2026-02-09 | Release | 2026-02-14 |
Browser API · Portable schema
Browser API
Graflume.timeline()
const data = [
{
"category": "Research",
"end": "2026-01-09",
"start": "2026-01-01"
},
{
"category": "Data design",
"end": "2026-01-16",
"start": "2026-01-05"
},
{
"category": "Prototype",
"end": "2026-01-25",
"start": "2026-01-12"
},
{
"category": "Accessibility",
"end": "2026-02-02",
"start": "2026-01-19"
},
{
"category": "Validation",
"end": "2026-02-10",
"start": "2026-01-27"
},
{
"category": "Release",
"end": "2026-02-14",
"start": "2026-02-09"
}
];
const options = {
"accessibility": {
"description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
"label": "Timeline / Range · Accessibility example"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
};
Graflume.timeline('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
"label": "Timeline / Range · Accessibility example"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"end": "end"
}
},
"width": "container",
"x": {
"field": "start",
"title": "Schedule",
"type": "temporal"
},
"y": {
"field": "category",
"title": "Workstream",
"type": "ordinal"
}
}