ARIA · table fallbackAccessibility
Canvas ARIA metadata is paired with a text summary and table fallback.
Graflume · Alpha
Encode two coordinates, magnitude, and an optional group in each bubble.
Chart family · Default families
Encode two coordinates, magnitude, and an optional group in each bubble.
bubble()graflumebubbleBasic implementation
Start with only the required data and family encoding. Expand the code to run the same example.
Encode two coordinates, magnitude, and an optional group in each bubble.
StatusLoading
minimal-implementationLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"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
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Common features
Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time. Hover over a data mark. On supported charts, move the pointer along the axis to see the nearest value. All exact values are available in the table below.
Add a chart title and supporting description inside the visualization.
StatusLoading
headerLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"title": {
"subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
"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
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"title": {
"subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
"text": "Bubble"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Reveal exact values from a mark or axis position. Authors can choose locale-aware date/time styles and a time zone with declarative options.
StatusLoading
tooltipLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"interaction": {
"hover": true,
"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 · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"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
{
"height": 620,
"interaction": {
"hover": true,
"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 · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Apply the current built-in theme from the selector and update every active example together.
StatusLoading
themeLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"theme": "graflume-light",
"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
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Explain the visual meaning of layers, categories, or continuous values.
StatusLoading
legendlegend · categories · groupLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"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"
}
},
"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
{
"height": 620,
"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"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Emphasize a representative datum or spatial position to guide inspection.
StatusLoading
highlighthighlights[] · datum · xLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": 50
}
}
],
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"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
{
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": 50
}
}
],
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
StatusLoading
calloutannotations[] · datum · x · callout · placement:autoLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"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": 50
},
"text": "Point and range highlights · 50"
}
],
"height": 620,
"interaction": {
"controls": {
"annotations": 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"
}
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"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
{
"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": 50
},
"text": "Point and range highlights · 50"
}
],
"height": 620,
"interaction": {
"controls": {
"annotations": 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"
}
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Select and toggle data, then clear it from the background or Escape key.
StatusLoading
selectionselection · multiple · toggleLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "x",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"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
{
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "x",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Show or hide zoom, pan, reset, projection, fullscreen, and PNG export one menu at a time. Set controls: false to remove the entire toolbar.
StatusLoading
controlsLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
const options = {
"height": 620,
"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
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"padding": {
"top": 52
},
"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
{
"height": 620,
"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
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Pair ARIA descriptions and keyboard guidance with a semantic data table.
StatusLoading
accessibilityLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
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 · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"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
{
"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 · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Chart-specific features
These tabs come from Graflume's public catalog. Every mode owns runnable data, options, a Quick API, and source-backed feature claims.
Bubble chart uses runnable data and options to demonstrate square-root radius; color field.
StatusLoading
bubblesquare-root radiuscolor fieldpacked collision layout and labelszero and negative policyLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
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 example"
},
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "end",
"padding": 36,
"text": "Reach"
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "center",
"padding": 58,
"text": "Engagement"
}
}
},
"height": 620,
"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",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
"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
{
"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 example"
},
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "end",
"padding": 36,
"text": "Reach"
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "center",
"padding": 58,
"text": "Engagement"
}
}
},
"height": 620,
"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",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"color": "group",
"size": "size"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
"text": "Bubble"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Packed bubble chart uses runnable data and options to demonstrate bounded radius; frame filtering.
StatusLoading
packed-bubblebounded radiusframe filteringabsolute-area scale contractexplicit size guideLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Organic search | 38 |
| Direct | 27 |
| Product referrals | 18 |
| Community | 11 |
| Campaigns | 6 |
Browser API
const data = [
{
"category": "Organic search",
"radius": 34,
"value": 38
},
{
"category": "Direct",
"radius": 28,
"value": 27
},
{
"category": "Product referrals",
"radius": 23,
"value": 18
},
{
"category": "Community",
"radius": 18,
"value": 11
},
{
"category": "Campaigns",
"radius": 13,
"value": 6
}
];
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 · Packed bubble chart example"
},
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "end",
"padding": 36,
"text": "Reach"
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "center",
"padding": 58,
"text": "Engagement"
}
}
},
"height": 620,
"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": "Bubble · Packed bubble chart",
"trigger": "mark"
}
},
"locale": "en",
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Packed bubble chart uses runnable data and options to demonstrate bounded radius; frame filtering.",
"text": "Bubble · Packed bubble chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Engagement score",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Satisfaction score",
"type": "quantitative"
}
};
Graflume.packedBubble('#chart', data, options);Portable schema
{
"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 · Packed bubble chart example"
},
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "end",
"padding": 36,
"text": "Reach"
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "center",
"padding": 58,
"text": "Engagement"
}
}
},
"height": 620,
"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": "Bubble · Packed bubble chart",
"trigger": "mark"
}
},
"locale": "en",
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Packed bubble chart uses runnable data and options to demonstrate bounded radius; frame filtering.",
"text": "Bubble · Packed bubble chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Engagement score",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Satisfaction score",
"type": "quantitative"
}
}Edge cases
Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.
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<=6Loading
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
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
{
"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"
}
}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<=7Loading
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
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
{
"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"
}
}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<=20000legend · categories · grouphighlights[] · datum · xannotations[] · datum · x · callout · placement:autoLoading
Browser API
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
{
"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"
}
}Extreme environments
Combine container size, input method, display capability, and user preference instead of guessing a device name. Compare mobile, watch, e-paper, monochrome, dot-matrix, and standards-based extreme environments on the same chart.
Reflow axes, legends, descriptions, and controls from the available container size.
960×540 · adaptive.profiles=responsive-fluidzoom-reflowshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialPrioritize 44px touch targets, tap tooltips, and collapsed secondary information on a narrow portrait screen.
390×844 · adaptive.profiles=mobile-touchzoom-reflowcoarse-touchvirtual-keyboardshape-rectangledisplay-colorinput-coarsemotion-fullrenderer-canvas-spatialKeep essential marks, values, and stepped controls on a tiny or round screen, with the remaining detail reflowed below.
184×224 · adaptive.profiles=smartwatchzoom-reflowreduced-effectscoarse-touchlow-resourcecutout-roundshape-rounddisplay-colorinput-coarsemotion-reducedrenderer-canvas-spatialviewport-tinyPrefer stable frames, strong contrast, and the data table for low-refresh e-paper displays.
758×1024 · adaptive.profiles=ebook-paperprint-pagedreduced-effectslow-resourceshape-pageddisplay-e-inkinput-keyboardmotion-staticrenderer-canvas-spatialUse strokes, markers, patterns, labels, and the table so color is never the only distinction.
640×400 · adaptive.profiles=monochromereduced-effectsshape-rectangledisplay-monochromeinput-finemotion-reducedrenderer-canvas-spatialReduce decoration and mark density while using strong strokes, integer labels, and stepped zoom on a low-resolution display.
320×240 · adaptive.profiles=dot-matrixzoom-reflowreduced-effectskeyboard-switchlow-resourceshape-rectangledisplay-gridinput-keyboardmotion-staticrenderer-canvas-spatialviewport-tinyReflow prose to one dimension at the 320 CSS px equivalent while retaining chart-local zoom and pan.
320×480 · adaptive.profiles=zoom-reflowzoom-reflowshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialKeep the chart and explanation in independent viewport segments without crossing the hinge.
720×640 · adaptive.profiles=foldable-dualfoldable-dualshape-dualdisplay-colorinput-finemotion-fullrenderer-canvas-spatialProvide strong focus indication and D-pad, Enter, and Escape operation on a hoverless distance display.
1920×1080 · adaptive.profiles=tv-remotetv-remoteshape-rectangledisplay-colorinput-remotemotion-fullrenderer-canvas-spatialPair a static chart with its description and table, hide controls, and avoid page breaks through the figure.
794×1123 · adaptive.profiles=print-pagedprint-pagedshape-pageddisplay-colorinput-finemotion-staticrenderer-canvas-spatialHonor system colors and borders while retaining patterns, markers, and text as redundant cues.
640×400 · adaptive.profiles=forced-colorsforced-colorsshape-rectangledisplay-high-contrastinput-finemotion-fullrenderer-canvas-spatialComplete transitions immediately and use opaque surfaces and deferred work to reduce motion and transparency load.
640×400 · adaptive.profiles=reduced-effectsreduced-effectsshape-rectangledisplay-colorinput-finemotion-reducedrenderer-canvas-spatialInspect values by tap without hover, keep targets at least 44px, and expose explicit zoom buttons.
390×844 · adaptive.profiles=coarse-touchcoarse-touchshape-rectangledisplay-colorinput-coarsemotion-fullrenderer-canvas-spatialReach every operation with Tab, arrows, Enter, Space, and Escape, with no drag-only action.
640×400 · adaptive.profiles=keyboard-switchkeyboard-switchshape-rectangledisplay-colorinput-keyboardmotion-fullrenderer-canvas-spatialPrefer progressive rendering, sampling, cancellable work, and a static fallback under constrained memory or connectivity.
640×400 · adaptive.profiles=low-resourcelow-resourceshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialFollow RTL logical flow for prose and tabs while keeping axes, code, and data identifiers in technical LTR order.
640×400 · adaptive.profiles=rtlrtlshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialReflow vertical prose while keeping the chart and technical surfaces in an independent horizontal panel.
640×400 · adaptive.profiles=vertical-writingvertical-writingshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialCap chart width instead of stretching indefinitely, using panelization and readable labels on ultrawide or projected surfaces.
1920×720 · adaptive.profiles=ultrawide-projectionultrawide-projectionshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialProvide short and long descriptions, a semantic table, and status so Canvas or color is never the sole information path.
640×400 · adaptive.profiles=screenreader-braillescreenreader-brailleshape-nonvisualdisplay-colorinput-nonvisualmotion-fullrenderer-canvas-spatialA verified static preview, description, and collapsible row-data table preserve the essential information when scripting is unavailable.
640×400 · adaptive.profiles=no-scriptno-scriptshape-nonvisualdisplay-colorinput-finemotion-staticrenderer-static-fallbackFall back safely to the ordinary 2D or WebGL panel when XR APIs are absent, duplicating depth cues in text and the table.
640×400 · adaptive.profiles=spatial-xrspatial-xrshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialInset titles, marks, and controls around safe areas and round display bounds so they are not clipped.
184×224 · adaptive.profiles=cutout-roundcutout-roundshape-rounddisplay-colorinput-finemotion-fullrenderer-canvas-spatialviewport-tinyReflow focus controls, the chart, and the active explanation when a virtual keyboard reduces the visual viewport.
390×560 · adaptive.profiles=virtual-keyboardvirtual-keyboardshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialChoose a profile above to preserve the same data and ChartSpec while reconfiguring the chart for display size, input method, display capability, and user preference.
StatusLoading
adaptivecapability-drivenno-user-agent-branchinglegend · categories · grouphighlights[] · datum · xannotations[] · datum · x · callout · placement:autoselection · multiple · toggleLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | sizequantitative | groupordinal |
|---|---|---|---|
| 14 | 38 | 28 | Starter |
| 20 | 45 | 34 | Starter |
| 25 | 41 | 31 | Starter |
| 38 | 57 | 64 | Growth |
| 45 | 63 | 78 | Growth |
| 50 | 55 | 70 | Growth |
| 64 | 72 | 112 | Scale |
| 72 | 79 | 128 | Scale |
| 78 | 70 | 118 | Scale |
| 61 | 88 | 52 | Opportunity |
Browser API
const data = [
{
"group": "Starter",
"name": "Atlas Lab",
"size": 28,
"x": 14,
"y": 38,
"z": 7
},
{
"group": "Starter",
"name": "Beacon Co",
"size": 34,
"x": 20,
"y": 45,
"z": 10
},
{
"group": "Starter",
"name": "Civic Data",
"size": 31,
"x": 25,
"y": 41,
"z": 12
},
{
"group": "Growth",
"name": "Delta Ops",
"size": 64,
"x": 38,
"y": 57,
"z": 15
},
{
"group": "Growth",
"name": "Ember Labs",
"size": 78,
"x": 45,
"y": 63,
"z": 18
},
{
"group": "Growth",
"name": "Foundry BI",
"size": 70,
"x": 50,
"y": 55,
"z": 21
},
{
"group": "Scale",
"name": "Harbor AI",
"size": 112,
"x": 64,
"y": 72,
"z": 25
},
{
"group": "Scale",
"name": "Lattice Co",
"size": 128,
"x": 72,
"y": 79,
"z": 28
},
{
"group": "Scale",
"name": "Meridian",
"size": 118,
"x": 78,
"y": 70,
"z": 31
},
{
"group": "Opportunity",
"name": "Northstar",
"size": 52,
"x": 61,
"y": 88,
"z": 34
}
];
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 chart: Customer segments compared by engagement, satisfaction, and team size"
},
"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": 50
},
"text": "Point and range highlights · 50"
}
],
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "end",
"padding": 36,
"text": "Reach"
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "center",
"padding": 58,
"text": "Engagement"
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": 50
}
}
],
"interaction": {
"controls": {
"annotations": true,
"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"
},
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "x",
"mode": "multiple",
"toggle": true
},
"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",
"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
},
"theme": "graflume-light",
"title": {
"subtitle": "Customer segments compared by engagement, satisfaction, and team size",
"text": "Bubble chart"
},
"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
{
"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 chart: Customer segments compared by engagement, satisfaction, and team size"
},
"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": 50
},
"text": "Point and range highlights · 50"
}
],
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "end",
"padding": 36,
"text": "Reach"
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"title": {
"align": "center",
"padding": 58,
"text": "Engagement"
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": 50
}
}
],
"interaction": {
"controls": {
"annotations": true,
"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"
},
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "x",
"mode": "multiple",
"toggle": true
},
"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",
"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
},
"theme": "graflume-light",
"title": {
"subtitle": "Customer segments compared by engagement, satisfaction, and team size",
"text": "Bubble chart"
},
"width": "container",
"x": {
"field": "x",
"title": "Engagement score",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Satisfaction score",
"type": "quantitative"
}
}Catalog
The source-controlled catalog maps callable modes in this family and compatibility identifiers to their canonical modes. This table contains executable entries only.
2 modes · 2 compatibility identifiers
| ID | Name | Quick API | mode | mark | renderer |
|---|---|---|---|---|---|
bubble | Bubble chart | bubble() | default | bubble | canvas |
packed-bubble | Packed bubble chart | packedBubble() | packed-bubble | packed-bubble | canvas |
| Identifier | Canonical mode ID |
|---|---|
bubble | bubble |
packedbubble | packed-bubble |
Manual
ARIA · table fallbackCanvas ARIA metadata is paired with a text summary and table fallback.
standard · large · ultraStandard, large, and ultra profiles bound rendering work.