Graflume · Alpha
Scatter matrix · Edge-case application
Compare every pair of quantitative dimensions as scatter cells with diagonal histograms. 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
Scatter matrix
Compare every pair of quantitative dimensions as scatter cells with diagonal histograms.
- Quick API
scatterMatrix()- Browser snapshot
graflume/complete- mark
scatter-matrix- 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-largezeromixed-signbudget:marks<=6
Loading
Wide numeric range · Row data
Row data and zero-copy TypedArray columns share one data contract.
speedquantitative | qualityquantitative | costquantitative |
|---|---|---|
| -1e+12 | -1e-09 | 0 |
| -1e-09 | 0 | 1e+12 |
| 0 | 1e+12 | 1e-09 |
| 1e+12 | 1e-09 | 1e+06 |
| 1e-09 | 1e+06 | -1e+12 |
| 1e+06 | -1e+12 | -1e-09 |
Browser API · Portable schema
Browser API
Graflume.scatterMatrix()
const data = [
{
"cost": 0,
"quality": -1e-9,
"speed": -1000000000000
},
{
"cost": 1000000000000,
"quality": 0,
"speed": -1e-9
},
{
"cost": 1e-9,
"quality": 1000000000000,
"speed": 0
},
{
"cost": 1000000,
"quality": 1e-9,
"speed": 1000000000000
},
{
"cost": -1000000000000,
"quality": 1000000,
"speed": 1e-9
},
{
"cost": -1e-9,
"quality": -1000000000000,
"speed": 1000000
}
];
const options = {
"accessibility": {
"description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Scatter matrix"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"dimensions": [
"speed",
"quality",
"cost"
]
}
},
"title": {
"subtitle": "edge case · range",
"text": "Scatter matrix"
},
"width": "container",
"x": {
"field": "speed",
"title": "Release metric",
"type": "quantitative"
},
"y": {
"field": "quality",
"title": "Release metric",
"type": "quantitative"
}
};
Graflume.scatterMatrix('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Scatter matrix"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"dimensions": [
"speed",
"quality",
"cost"
]
}
},
"title": {
"subtitle": "edge case · range",
"text": "Scatter matrix"
},
"width": "container",
"x": {
"field": "speed",
"title": "Release metric",
"type": "quantitative"
},
"y": {
"field": "quality",
"title": "Release metric",
"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-rownullconstant-dimensioncollinearbudget:marks<=7
Loading
Sparse and irregular structure · Row data
Row data and zero-copy TypedArray columns share one data contract.
speedquantitative | qualityquantitative | costquantitative |
|---|---|---|
| 61 | 75 | 82 |
| 67.65 | — | 82.79 |
| 61 | 75 | 82 |
| 71.88 | 73.38 | 83.22 |
| 72.41 | 70.75 | 83.01 |
| 69.68 | 68.28 | 81.97 |
| 65.69 | 67.03 | 80.07 |
Browser API · Portable schema
Browser API
Graflume.scatterMatrix()
const data = [
{
"cost": 82,
"quality": 75,
"speed": 61
},
{
"cost": 82.79,
"quality": null,
"speed": 67.65
},
{
"cost": 82,
"quality": 75,
"speed": 61
},
{
"cost": 83.22,
"quality": 73.38,
"speed": 71.88
},
{
"cost": 83.01,
"quality": 70.75,
"speed": 72.41
},
{
"cost": 81.97,
"quality": 68.28,
"speed": 69.68
},
{
"cost": 80.07,
"quality": 67.03,
"speed": 65.69
}
];
const options = {
"accessibility": {
"description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Scatter matrix · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"dimensions": [
"speed",
"quality",
"cost"
]
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Scatter matrix · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "speed",
"title": "Release metric",
"type": "quantitative"
},
"y": {
"field": "quality",
"title": "Release metric",
"type": "quantitative"
}
};
Graflume.scatterMatrix('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Scatter matrix · Sparse and irregular structure"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"options": {
"dimensions": [
"speed",
"quality",
"cost"
]
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Scatter matrix · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "speed",
"title": "Release metric",
"type": "quantitative"
},
"y": {
"field": "quality",
"title": "Release metric",
"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 8,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:60000zoom-pan-resetbudget:point-marks<=8000
- Legend:
legend · categories · name - Point and range highlights:
highlights[] · datum · speed - Custom callouts:
annotations[] · datum · speed · callout · placement:auto
Loading
Browser API · Portable schema
Browser API
Graflume.scatterMatrix()
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 60000,
"unit": "rows"
},
"expectedInvariants": [
"finite-json",
"dimension-order-preserved"
],
"id": "multivariate-observations",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 8000,
"resource": "point-marks"
},
"parameters": {
"dimensionCount": 8,
"explicitPerformance": true,
"family": "scatter-matrix",
"nullableFields": [
"quality"
],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"speed",
"quality",
"cost"
],
"valuePolicy": "signed"
},
"preview": {
"maximumRows": 12,
"method": "quantiles"
},
"reduction": {
"method": "stratified-observation-sample",
"stage": "sample"
},
"seed": 2082979855,
"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": "Scatter matrix · 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": "speed",
"type": "datum",
"value": 45.588
},
"text": "Point and range highlights · 45.588"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "speed",
"type": "datum",
"value": 45.588
}
}
],
"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": "speed",
"format": "number",
"label": "Speed"
},
{
"field": "quality",
"format": "number",
"label": "Quality"
},
{
"field": "cost",
"format": "number",
"label": "Cost"
}
],
"title": "Scatter matrix · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "name",
"interactive": true,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "categories",
"orientation": "horizontal",
"position": "bottom",
"title": "Name",
"visible": true
},
"locale": "en",
"mark": {
"options": {
"dimensions": [
"speed",
"quality",
"cost"
]
}
},
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "Named release candidates expose correlations among speed, quality, and cost · 60,000 logical rows, screen-aware detail",
"text": "Scatter matrix · High data volume"
},
"width": "container",
"x": {
"field": "speed",
"title": "Release metric",
"type": "quantitative"
},
"y": {
"field": "quality",
"title": "Release metric",
"type": "quantitative"
}
};
Graflume.scatterMatrix('#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": "Scatter matrix · 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": "speed",
"type": "datum",
"value": 45.588
},
"text": "Point and range highlights · 45.588"
}
],
"axes": {
"x": false,
"y": false
},
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "speed",
"type": "datum",
"value": 45.588
}
}
],
"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": "speed",
"format": "number",
"label": "Speed"
},
{
"field": "quality",
"format": "number",
"label": "Quality"
},
{
"field": "cost",
"format": "number",
"label": "Cost"
}
],
"title": "Scatter matrix · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "name",
"interactive": true,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "categories",
"orientation": "horizontal",
"position": "bottom",
"title": "Name",
"visible": true
},
"locale": "en",
"mark": {
"options": {
"dimensions": [
"speed",
"quality",
"cost"
]
}
},
"padding": {
"top": 52
},
"performance": "ultra",
"theme": "graflume-light",
"title": {
"subtitle": "Named release candidates expose correlations among speed, quality, and cost · 60,000 logical rows, screen-aware detail",
"text": "Scatter matrix · High data volume"
},
"width": "container",
"x": {
"field": "speed",
"title": "Release metric",
"type": "quantitative"
},
"y": {
"field": "quality",
"title": "Release metric",
"type": "quantitative"
}
}