Graflume · Alpha
Bubble · Edge-case application
Encode two coordinates, magnitude, and an optional group in each bubble. 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
Bubble
Encode two coordinates, magnitude, and an optional group in each bubble.
- Quick API
bubble()- Browser snapshot
graflume- mark
bubble- Presets
- 2
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.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| -1e+12 | -1e-09 | 1e-09 | Starter |
| -1e-09 | 0 | 0 | Starter |
| 0 | 1e+12 | 1e+12 | Starter |
| 1e+12 | 1e-09 | 1 | Growth |
| 1e-09 | 1e+06 | 1e+06 | Growth |
| 1e+06 | -1e+12 | 1e-06 | Growth |
Browser API · Portable schema
Browser API
Graflume.bubble()
const data = [
{
"group": "Starter",
"size": 1e-9,
"x": -1000000000000,
"y": -1e-9
},
{
"group": "Starter",
"size": 0,
"x": -1e-9,
"y": 0
},
{
"group": "Starter",
"size": 1000000000000,
"x": 0,
"y": 1000000000000
},
{
"group": "Growth",
"size": 1,
"x": 1000000000000,
"y": 1e-9
},
{
"group": "Growth",
"size": 1000000,
"x": 1e-9,
"y": 1000000
},
{
"group": "Growth",
"size": 0.000001,
"x": 1000000,
"y": -1000000000000
}
];
const options = {
"accessibility": {
"description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bubble"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Bubble"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
};
Graflume.bubble('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bubble"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Bubble"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"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 2 structural rules that preserve the meaning of missing, duplicate, and ordered values.
StatusLoading
irregular-structureduplicate-pointnullbudget:marks<=7
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| — | 45 | 34 | Starter |
| 14 | 38 | 28 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
Browser API · Portable schema
Browser API
Graflume.bubble()
const data = [
{
"group": "Starter",
"size": 28,
"x": 14,
"y": 38
},
{
"group": "Starter",
"size": 34,
"x": null,
"y": 45
},
{
"group": "Starter",
"size": 28,
"x": 14,
"y": 38
},
{
"group": "Starter",
"size": 31,
"x": 25,
"y": 41
},
{
"group": "Growth",
"size": 64,
"x": 38,
"y": 57
},
{
"group": "Growth",
"size": 78,
"x": 45,
"y": 63
},
{
"group": "Growth",
"size": 70,
"x": 50,
"y": 55
}
];
const options = {
"accessibility": {
"description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bubble · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Bubble · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
};
Graflume.bubble('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bubble · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Bubble · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"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 · categories · group - Point and range highlights:
highlights[] · datum · x - Custom callouts:
annotations[] · datum · x · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.bubble()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 60000,
"unit": "rows"
},
"expectedInvariants": [
"finite-json",
"size-nonnegative"
],
"id": "clustered-points",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 20000,
"resource": "point-marks"
},
"parameters": {
"family": "bubble",
"nullableFields": [
"x"
],
"positiveFields": [
"size"
],
"scenario": "volume",
"valueFields": [
"x",
"y"
],
"valuePolicy": "signed-size"
},
"preview": {
"maximumRows": 12,
"method": "quantiles"
},
"reduction": {
"method": "stratified-cluster-sample",
"stage": "sample"
},
"seed": 2916480553,
"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": "Bubble · 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": "x",
"type": "datum",
"value": -30.773
},
"text": "Point and range highlights · -30.773"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": -30.773
}
}
],
"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": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "size",
"format": "number",
"label": "Size"
},
{
"field": "group",
"format": "auto",
"label": "Group"
}
],
"title": "Bubble · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "group",
"interactive": true,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "categories",
"orientation": "horizontal",
"position": "bottom",
"title": "Group",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Customer segments compared by engagement, satisfaction, and team size · 60,000 logical rows, screen-aware detail",
"text": "Bubble · High data volume"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
};
Graflume.bubble('#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": "Bubble · 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": "x",
"type": "datum",
"value": -30.773
},
"text": "Point and range highlights · -30.773"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": -30.773
}
}
],
"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": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "size",
"format": "number",
"label": "Size"
},
{
"field": "group",
"format": "auto",
"label": "Group"
}
],
"title": "Bubble · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "group",
"interactive": true,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "categories",
"orientation": "horizontal",
"position": "bottom",
"title": "Group",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Customer segments compared by engagement, satisfaction, and team size · 60,000 logical rows, screen-aware detail",
"text": "Bubble · High data volume"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}