Graflume · Alpha
Funnel · Edge-case application
Compare declining stage totals and conversion loss in a funnel layout. 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 · Advanced families
Funnel
Compare declining stage totals and conversion loss in a funnel layout.
- Quick API
funnel()- Browser snapshot
graflume/complete- mark
funnel- Presets
- 5
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-largezerobudget:marks<=5
Loading
Wide numeric range · Row data
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Visited | 1e+12 |
| Explored a chart | 1 |
| Created a view | 1e-09 |
| Shared with a team | 0 |
| Returned in 30 days | 0 |
Browser API · Portable schema
Browser API
Graflume.funnel()
const data = [
{
"category": "Visited",
"value": 1000000000000
},
{
"category": "Explored a chart",
"value": 1
},
{
"category": "Created a view",
"value": 1e-9
},
{
"category": "Shared with a team",
"value": 0
},
{
"category": "Returned in 30 days",
"value": 0
}
];
const options = {
"accessibility": {
"description": "A realistic product journey exposes the largest conversion loss. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Funnel"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"mode": "default"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Funnel"
},
"width": "container",
"x": {
"field": "category",
"title": "Journey stage",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Teams",
"type": "quantitative"
}
};
Graflume.funnel('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A realistic product journey exposes the largest conversion loss. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Funnel"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"mode": "default"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Funnel"
},
"width": "container",
"x": {
"field": "category",
"title": "Journey stage",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "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-structuretiesnullzero-baselinebudget:marks<=5
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Visited | 12000 |
| Explored a chart | — |
| Created a view | 5120 |
| Shared with a team | 2940 |
| Returned in 30 days | 1860 |
Browser API · Portable schema
Browser API
Graflume.funnel()
const data = [
{
"category": "Visited",
"value": 12000
},
{
"category": "Explored a chart",
"value": null
},
{
"category": "Created a view",
"value": 5120
},
{
"category": "Shared with a team",
"value": 2940
},
{
"category": "Returned in 30 days",
"value": 1860
}
];
const options = {
"accessibility": {
"description": "A realistic product journey exposes the largest conversion loss. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Funnel · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"mode": "default"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Funnel · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "category",
"title": "Journey stage",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Teams",
"type": "quantitative"
}
};
Graflume.funnel('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A realistic product journey exposes the largest conversion loss. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Funnel · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"mode": "default"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Funnel · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "category",
"title": "Journey stage",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "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 130,000 logical events and bounds rendered bar marks at 5,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:130000zoom-pan-resetbudget:bar-marks<=5000
- Legend:
legend · categories · category - Point and range highlights:
highlights[] · datum · category - Custom callouts:
annotations[] · datum · category · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.funnel()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 130000,
"unit": "events"
},
"expectedInvariants": [
"finite-json",
"stage-value-nonnegative",
"stage-value-nonincreasing"
],
"id": "categorical-events",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 5000,
"resource": "bar-marks"
},
"parameters": {
"explicitPerformance": true,
"family": "funnel",
"nullableFields": [
"value"
],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"value"
],
"valuePolicy": "descending-nonnegative"
},
"preview": {
"maximumRows": 12,
"method": "top-groups"
},
"reduction": {
"method": "group-sum-top-k",
"stage": "pre-aggregate"
},
"seed": 2324560563,
"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": "Funnel · 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": "category",
"type": "datum",
"value": "Created a view"
},
"text": "Point and range highlights · Created a view"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 130000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Created a view"
}
}
],
"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": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Funnel · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "category",
"interactive": true,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "categories",
"orientation": "horizontal",
"position": "bottom",
"title": "Category",
"visible": true
},
"locale": "en",
"mark": {
"options": {
"mode": "default"
}
},
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "A realistic product journey exposes the largest conversion loss · 130,000 logical rows, screen-aware detail",
"text": "Funnel · High data volume"
},
"width": "container",
"x": {
"field": "category",
"title": "Journey stage",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Teams",
"type": "quantitative"
}
};
Graflume.funnel('#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": "Funnel · 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": "category",
"type": "datum",
"value": "Created a view"
},
"text": "Point and range highlights · Created a view"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 130000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Created a view"
}
}
],
"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": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Funnel · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "category",
"interactive": true,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "categories",
"orientation": "horizontal",
"position": "bottom",
"title": "Category",
"visible": true
},
"locale": "en",
"mark": {
"options": {
"mode": "default"
}
},
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "A realistic product journey exposes the largest conversion loss · 130,000 logical rows, screen-aware detail",
"text": "Funnel · High data volume"
},
"width": "container",
"x": {
"field": "category",
"title": "Journey stage",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Teams",
"type": "quantitative"
}
}