Graflume · Alpha
Map · Edge-case application
Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests. 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
Map
Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests.
- Quick API
map()- Browser snapshot
graflume- mark
map- Presets
- 9
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.
longitudequantitative | latitudequantitative | valuequantitative |
|---|---|---|
| 126.98 | 37.57 | -1e+12 |
| 139.69 | 35.68 | -1e-09 |
| 103.82 | 1.35 | 0 |
| 77.21 | 28.61 | 1e+12 |
| 2.35 | 48.86 | 1e-09 |
| -74 | 40.71 | 1e+06 |
Browser API · Portable schema
Browser API
Graflume.map()
const data = [
{
"latitude": 37.57,
"longitude": 126.98,
"value": -1000000000000
},
{
"latitude": 35.68,
"longitude": 139.69,
"value": -1e-9
},
{
"latitude": 1.35,
"longitude": 103.82,
"value": 0
},
{
"latitude": 28.61,
"longitude": 77.21,
"value": 1000000000000
},
{
"latitude": 48.86,
"longitude": 2.35,
"value": 1e-9
},
{
"latitude": 40.71,
"longitude": -74,
"value": 1000000
}
];
const options = {
"accessibility": {
"description": "Regional adoption and routes connecting Statground teams around the world. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Map"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"size": "value"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Map"
},
"width": "container",
"x": {
"field": "longitude",
"title": "Longitude",
"type": "quantitative"
},
"y": {
"field": "latitude",
"title": "Latitude",
"type": "quantitative"
}
};
Graflume.map('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Regional adoption and routes connecting Statground teams around the world. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Map"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"size": "value"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Map"
},
"width": "container",
"x": {
"field": "longitude",
"title": "Longitude",
"type": "quantitative"
},
"y": {
"field": "latitude",
"title": "Latitude",
"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-structureduplicate-keynullantimeridianpolar-coordinatebudget:marks<=7
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
longitudequantitative | latitudequantitative | valuequantitative |
|---|---|---|
| 126.98 | 37.57 | 92 |
| 139.69 | 35.68 | — |
| 126.98 | 37.57 | 92 |
| 103.82 | 1.35 | 64 |
| 77.21 | 28.61 | 58 |
| 2.35 | 48.86 | 73 |
| -74 | 40.71 | 88 |
Browser API · Portable schema
Browser API
Graflume.map()
const data = [
{
"latitude": 37.57,
"longitude": 126.98,
"value": 92
},
{
"latitude": 35.68,
"longitude": 139.69,
"value": null
},
{
"latitude": 37.57,
"longitude": 126.98,
"value": 92
},
{
"latitude": 1.35,
"longitude": 103.82,
"value": 64
},
{
"latitude": 28.61,
"longitude": 77.21,
"value": 58
},
{
"latitude": 48.86,
"longitude": 2.35,
"value": 73
},
{
"latitude": 40.71,
"longitude": -74,
"value": 88
}
];
const options = {
"accessibility": {
"description": "Regional adoption and routes connecting Statground teams around the world. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Map · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"size": "value"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Map · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "longitude",
"title": "Longitude",
"type": "quantitative"
},
"y": {
"field": "latitude",
"title": "Latitude",
"type": "quantitative"
}
};
Graflume.map('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Regional adoption and routes connecting Statground teams around the world. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Map · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"size": "value"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Map · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "longitude",
"title": "Longitude",
"type": "quantitative"
},
"y": {
"field": "latitude",
"title": "Latitude",
"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 point marks at 20,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:60000zoom-pan-resetbudget:point-marks<=20000
- Legend:
legend · explicit · 1 channels - Point and range highlights:
highlights[] · datum · longitude - Custom callouts:
annotations[] · datum · longitude · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.map()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 60000,
"unit": "rows"
},
"expectedInvariants": [
"finite-json",
"longitude-closed-minus180-180",
"latitude-closed-minus90-90"
],
"id": "geo-events",
"initialView": {
"kind": "viewport",
"xDomain": [
-180,
180
],
"yDomain": [
-70,
80
],
"zoom": 1
},
"outputBudget": {
"maximum": 20000,
"resource": "point-marks"
},
"parameters": {
"family": "map",
"geometry": "projected-points",
"nullableFields": [
"value"
],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"value"
],
"valuePolicy": "signed"
},
"preview": {
"maximumRows": 12,
"method": "spatial-slice"
},
"reduction": {
"method": "geohash-stratified-sample",
"stage": "sample"
},
"seed": 2716439227,
"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": "Map · 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": "longitude",
"type": "datum",
"value": -43.81583
},
"text": "Point and range highlights · -43.81583"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "longitude",
"type": "datum",
"value": -43.81583
}
}
],
"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": {
"fields": [
{
"field": "longitude",
"format": "number",
"label": "Longitude"
},
{
"field": "latitude",
"format": "number",
"label": "Latitude"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Map · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Activity · size"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Map · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"size": "value"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Regional adoption and routes connecting Statground teams around the world · 60,000 logical rows, screen-aware detail",
"text": "Map · High data volume"
},
"width": "container",
"x": {
"field": "longitude",
"title": "Longitude",
"type": "quantitative"
},
"y": {
"field": "latitude",
"title": "Latitude",
"type": "quantitative"
}
};
Graflume.map('#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": "Map · 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": "longitude",
"type": "datum",
"value": -43.81583
},
"text": "Point and range highlights · -43.81583"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "longitude",
"type": "datum",
"value": -43.81583
}
}
],
"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": {
"fields": [
{
"field": "longitude",
"format": "number",
"label": "Longitude"
},
{
"field": "latitude",
"format": "number",
"label": "Latitude"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Map · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Activity · size"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Map · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"size": "value"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Regional adoption and routes connecting Statground teams around the world · 60,000 logical rows, screen-aware detail",
"text": "Map · High data volume"
},
"width": "container",
"x": {
"field": "longitude",
"title": "Longitude",
"type": "quantitative"
},
"y": {
"field": "latitude",
"title": "Latitude",
"type": "quantitative"
}
}