Graflume · Alpha
Annotation · Basic implementation · Common features
Place important events and explanatory labels directly on a time series. 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
Annotation
Place important events and explanatory labels directly on a time series.
- Quick API
annotation()- Browser snapshot
graflume- mark
annotation- 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
Place important events and explanatory labels directly on a time series.
StatusLoading
minimal-implementation
Loading
Basic example · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"title": {
"subtitle": "Annotation chart uses runnable data and options to demonstrate datum/layer/range/plot targets; runtime CRUD.",
"text": "Annotation"
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"title": {
"subtitle": "Annotation chart uses runnable data and options to demonstrate datum/layer/range/plot targets; runtime CRUD.",
"text": "Annotation"
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"axis": "x",
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "annotation",
"format": "auto",
"label": "Annotation"
}
],
"title": "Annotation · Tooltip",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": "x",
"fields": [
{
"dateStyle": "long",
"field": "date",
"format": "date",
"label": "Date",
"timeZone": "UTC"
},
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "annotation",
"format": "auto",
"label": "Annotation"
}
],
"title": "Annotation · Tooltip",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Annotation · Legend",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Annotation · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": "Annotation · Legend",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Annotation · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}Highlight
Emphasize a representative datum or spatial position to guide inspection.
StatusLoading
highlight
- Point and range highlights:
highlights[] · datum · date
Loading
Highlight · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
const options = {
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "date",
"type": "datum",
"value": "2026-07-01"
}
}
],
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": "date",
"type": "datum",
"value": "2026-07-01"
}
}
],
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}Callout
Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
StatusLoading
callout
- Custom callouts:
annotations[] · datum · date · callout · placement:auto
Loading
Callout · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
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": "date",
"type": "datum",
"value": "2026-07-01"
},
"text": "Point and range highlights · 2026-07-01"
}
],
"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": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": "date",
"type": "datum",
"value": "2026-07-01"
},
"text": "Point and range highlights · 2026-07-01"
}
],
"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": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
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": "date",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": "date",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
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": {
"annotation": "annotation"
},
"point": true
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": {
"annotation": "annotation"
},
"point": true
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}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.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | 48 | — |
| 2026-02-01 | 53 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-07-01 | 76 | — |
| 2026-08-01 | 82 | — |
| 2026-09-01 | 80 | Team plan launch |
| 2026-10-01 | 89 | — |
| 2026-11-01 | 96 | — |
| 2026-12-01 | 104 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"annotation": null,
"date": "2026-02-01",
"value": 53
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-04-01",
"value": 59
},
{
"annotation": null,
"date": "2026-05-01",
"value": 66
},
{
"annotation": null,
"date": "2026-06-01",
"value": 70
},
{
"annotation": null,
"date": "2026-07-01",
"value": 76
},
{
"annotation": null,
"date": "2026-08-01",
"value": 82
},
{
"annotation": "Team plan launch",
"date": "2026-09-01",
"value": 80
},
{
"annotation": null,
"date": "2026-10-01",
"value": 89
},
{
"annotation": null,
"date": "2026-11-01",
"value": 96
},
{
"annotation": null,
"date": "2026-12-01",
"value": 104
}
];
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": "Annotation · Accessibility example"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#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": "Annotation · Accessibility example"
},
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}