Graflume · Alpha
Word tree · Edge-case application
Represent word-parent relationships and weights as a branching hierarchy. 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
Word tree
Represent word-parent relationships and weights as a branching hierarchy.
- Quick API
wordTree()- Browser snapshot
graflume- mark
word-tree- Presets
- 1
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<=6
Loading
Wide numeric range · Row data
Row data and zero-copy TypedArray columns share one data contract.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Visualization | 1e+12 | — |
| Statistics | 1 | Visualization |
| Interaction | 1e-09 | Visualization |
| Accessibility | 0 | Visualization |
| Canvas | 0 | Interaction |
| Spatial | 0 | Interaction |
Browser API · Portable schema
Browser API
Graflume.wordTree()
const data = [
{
"parent": "",
"weight": 1000000000000,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 1,
"word": "Statistics"
},
{
"parent": "Visualization",
"weight": 1e-9,
"word": "Interaction"
},
{
"parent": "Visualization",
"weight": 0,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 0,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 0,
"word": "Spatial"
}
];
const options = {
"accessibility": {
"description": "A readable concept tree linking statistics, interaction, and accessibility. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Word tree"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"parent": "parent"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Word tree"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A readable concept tree linking statistics, interaction, and accessibility. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Word tree"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"parent": "parent"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Word tree"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"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-structuresparseout-of-orderdeep-hierarchybudget:marks<=6
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
wordordinal | weightquantitative | parentordinal |
|---|---|---|
| Interaction | 81 | Visualization |
| Visualization | 100 | — |
| Accessibility | 76 | Visualization |
| Canvas | 70 | Interaction |
| Spatial | 65 | Interaction |
| Statistics | 88 | Visualization |
Browser API · Portable schema
Browser API
Graflume.wordTree()
const data = [
{
"parent": "Visualization",
"weight": 81,
"word": "Interaction"
},
{
"parent": "",
"weight": 100,
"word": "Visualization"
},
{
"parent": "Visualization",
"weight": 76,
"word": "Accessibility"
},
{
"parent": "Interaction",
"weight": 70,
"word": "Canvas"
},
{
"parent": "Interaction",
"weight": 65,
"word": "Spatial"
},
{
"parent": "Visualization",
"weight": 88,
"word": "Statistics"
}
];
const options = {
"accessibility": {
"description": "A readable concept tree linking statistics, interaction, and accessibility. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Word tree · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"parent": "parent"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Word tree · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A readable concept tree linking statistics, interaction, and accessibility. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Word tree · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"parent": "parent"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Word tree · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"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 nodes and bounds rendered bar marks at 5,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:60000zoom-pan-resetbudget:bar-marks<=5000
- Legend:
legend · explicit · 2 channels - Point and range highlights:
highlights[] · datum · word - Custom callouts:
annotations[] · datum · word · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.wordTree()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 60000,
"unit": "nodes"
},
"expectedInvariants": [
"finite-json",
"stable-unique-node-id",
"weight-nonnegative"
],
"id": "hierarchy-nodes",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 5000,
"resource": "bar-marks"
},
"parameters": {
"explicitPerformance": true,
"family": "word-tree",
"nullableFields": [],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"weight"
],
"valuePolicy": "descending-nonnegative"
},
"preview": {
"maximumRows": 12,
"method": "hierarchy-focus"
},
"reduction": {
"method": "hierarchy-level-of-detail",
"stage": "level-of-detail"
},
"seed": 252838360,
"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": "Word tree · 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": "word",
"type": "datum",
"value": "Model · Harbor alerts · APAC · Horizon"
},
"text": "Point and range highlights · Model · Harbor alerts · APAC · Horizon"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "word",
"type": "datum",
"value": "Model · Harbor alerts · APAC · Horizon"
}
}
],
"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": "word",
"format": "auto",
"label": "Word"
},
{
"field": "weight",
"format": "number",
"label": "Weight"
},
{
"field": "parent",
"format": "auto",
"label": "Parent"
}
],
"title": "Word tree · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Parent"
},
{
"id": "semantic-1",
"label": "Word"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Word tree · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"parent": "parent"
}
},
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "A readable concept tree linking statistics, interaction, and accessibility · 60,000 logical rows, screen-aware detail",
"text": "Word tree · High data volume"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
};
Graflume.wordTree('#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": "Word tree · 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": "word",
"type": "datum",
"value": "Model · Harbor alerts · APAC · Horizon"
},
"text": "Point and range highlights · Model · Harbor alerts · APAC · Horizon"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "word",
"type": "datum",
"value": "Model · Harbor alerts · APAC · Horizon"
}
}
],
"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": "word",
"format": "auto",
"label": "Word"
},
{
"field": "weight",
"format": "number",
"label": "Weight"
},
{
"field": "parent",
"format": "auto",
"label": "Parent"
}
],
"title": "Word tree · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Parent"
},
{
"id": "semantic-1",
"label": "Word"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Word tree · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"parent": "parent"
}
},
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "A readable concept tree linking statistics, interaction, and accessibility · 60,000 logical rows, screen-aware detail",
"text": "Word tree · High data volume"
},
"width": "container",
"x": {
"field": "word",
"title": "Concept",
"type": "ordinal"
},
"y": {
"field": "weight",
"title": "Mentions",
"type": "quantitative"
}
}