Graflume · Alpha
Annotation · Edge-case application
Place important events and explanatory labels directly on a time series. Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.
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
Edge cases
Numeric range, irregular structure, and data volume
Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.
Wide numeric range
Mix zero, very small finite values, and very large finite values to verify automatic domains, precision, and stable geometry. NaN and Infinity remain intentionally invalid. It applies 2 data-integrity rules that preserve finite values and axis domains.
StatusLoading
extreme-rangeextreme-smallextreme-largezeromixed-signbudget:marks<=6
Loading
Wide numeric range · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-01-01 | -1e+12 | — |
| 2026-02-01 | -1e-09 | — |
| 2026-03-01 | 0 | Spring release |
| 2026-04-01 | 1e+12 | — |
| 2026-05-01 | 1e-09 | — |
| 2026-06-01 | 1e+06 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": null,
"date": "2026-01-01",
"value": -1000000000000
},
{
"annotation": null,
"date": "2026-02-01",
"value": -1e-9
},
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 0
},
{
"annotation": null,
"date": "2026-04-01",
"value": 1000000000000
},
{
"annotation": null,
"date": "2026-05-01",
"value": 1e-9
},
{
"annotation": null,
"date": "2026-06-01",
"value": 1000000
}
];
const options = {
"accessibility": {
"description": "Monthly active teams with the releases that changed adoption. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Annotation"
},
"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",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"title": {
"subtitle": "edge case · range",
"text": "Annotation"
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Active teams",
"type": "quantitative"
}
};
Graflume.annotation('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Monthly active teams with the releases that changed adoption. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Annotation"
},
"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",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"title": {
"subtitle": "edge case · range",
"text": "Annotation"
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Active teams",
"type": "quantitative"
}
}Sparse and irregular structure
Exercise only duplicate, missing, sparse, or out-of-order structures whose meaning is defined for this family. Broken references and malformed tuples are never disguised as successful examples. It applies 3 structural rules that preserve the meaning of missing, duplicate, and ordered values.
StatusLoading
irregular-structuresparseduplicate-keyout-of-ordernullbudget:marks<=7
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
datetemporal | valuequantitative | annotationordinal |
|---|---|---|
| 2026-03-01 | 51 | Spring release |
| 2026-01-01 | 48 | — |
| 2026-03-01 | 51 | Spring release |
| 2026-04-01 | 59 | — |
| 2026-05-01 | 66 | — |
| 2026-06-01 | 70 | — |
| 2026-02-01 | 53 | — |
Browser API · Portable schema
Browser API
Graflume.annotation()
const data = [
{
"annotation": "Spring release",
"date": "2026-03-01",
"value": 51
},
{
"annotation": null,
"date": "2026-01-01",
"value": 48
},
{
"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-02-01",
"value": 53
}
];
const options = {
"accessibility": {
"description": "Monthly active teams with the releases that changed adoption. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Annotation · Sparse and irregular structure"
},
"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 · Sparse and irregular structure",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"title": {
"subtitle": "edge case · structure",
"text": "Annotation · Sparse and irregular structure"
},
"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": "Monthly active teams with the releases that changed adoption. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Annotation · Sparse and irregular structure"
},
"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 · Sparse and irregular structure",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"title": {
"subtitle": "edge case · structure",
"text": "Annotation · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}High data volume
Materialize a deterministic compact recipe only when this tab opens. Graflume's performance profile bounds mark count, hit testing, and animation work for the input size. It applies 6 high-volume rules for deterministic generation and bounded output. This family materializes 60,000 logical rows and bounds rendered line points at 30,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:60000zoom-pan-resetbudget:line-points<=30000
- Legend:
legend · layers · one series - Point and range highlights:
highlights[] · datum · date - Custom callouts:
annotations[] · datum · date · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.annotation()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 60000,
"unit": "rows"
},
"expectedInvariants": [
"finite-json",
"valid-temporal-key"
],
"id": "time-signal",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 30000,
"resource": "line-points"
},
"parameters": {
"family": "annotation",
"nullableFields": [
"annotation"
],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"value"
],
"valuePolicy": "signed"
},
"preview": {
"maximumRows": 12,
"method": "quantiles"
},
"reduction": {
"method": "time-bin-lttb",
"stage": "bin"
},
"seed": 1945708392,
"shape": "rows",
"version": 2
};
const { data, previewRows, plan } = Graflume.materializeDemoRecipe(recipe);
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 · High data volume"
},
"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": "2024-11-16"
},
"text": "Point and range highlights · 2024-11-16"
}
],
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "date",
"type": "datum",
"value": "2024-11-16"
}
}
],
"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
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"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 · High data volume",
"trigger": "axis"
}
},
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Annotation · High data volume",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Annotation · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Monthly active teams with the releases that changed adoption · 60,000 logical rows, screen-aware detail",
"text": "Annotation · High data volume"
},
"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 · High data volume"
},
"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": "2024-11-16"
},
"text": "Point and range highlights · 2024-11-16"
}
],
"axes": {
"x": {
"format": {
"dateStyle": "long",
"timeZone": "UTC",
"type": "date"
}
}
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "date",
"type": "datum",
"value": "2024-11-16"
}
}
],
"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
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"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 · High data volume",
"trigger": "axis"
}
},
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Annotation · High data volume",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Annotation · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"annotation": "annotation"
},
"point": true
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Monthly active teams with the releases that changed adoption · 60,000 logical rows, screen-aware detail",
"text": "Annotation · High data volume"
},
"width": "container",
"x": {
"field": "date",
"title": "Month",
"type": "temporal"
},
"y": {
"field": "value",
"title": "Active teams",
"type": "quantitative"
}
}