ARIA · table fallbackAccessibility
Canvas ARIA metadata is paired with a text summary and table fallback.
Graflume · Alpha
Compare categorical magnitudes with bars sharing a common baseline.
Chart family · Default families
Compare categorical magnitudes with bars sharing a common baseline.
bar()graflumebarBasic implementation
Start with only the required data and family encoding. Expand the code to run the same example.
Compare categorical magnitudes with bars sharing a common baseline.
StatusLoading
minimal-implementationLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"title": {
"subtitle": "Bar chart uses runnable data and options to demonstrate horizontal and vertical bars; automatic total and segment labels.",
"text": "Bar"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"title": {
"subtitle": "Bar chart uses runnable data and options to demonstrate horizontal and vertical bars; automatic total and segment labels.",
"text": "Bar"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar · Tooltip",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar · Tooltip",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}Explain the visual meaning of layers, categories, or continuous values.
StatusLoading
legendlegend · layers · one seriesLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Bar · Legend",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Bar · Legend",
"visible": true
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Bar · Legend",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Bar · Legend",
"visible": true
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}Emphasize a representative datum or spatial position to guide inspection.
StatusLoading
highlighthighlights[] · datum · categoryLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Alerts"
}
}
],
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Alerts"
}
}
],
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
StatusLoading
calloutannotations[] · datum · category · callout · placement:autoLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "category",
"type": "datum",
"value": "Alerts"
},
"text": "Point and range highlights · 61"
}
],
"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": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#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": "category",
"type": "datum",
"value": "Alerts"
},
"text": "Point and range highlights · 61"
}
],
"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": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "category",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "category",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": {
"orientation": "horizontal"
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#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": {
"orientation": "horizontal"
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}Pair ARIA descriptions and keyboard guidance with a semantic data table.
StatusLoading
accessibilityLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#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": "Bar · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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.
Bar chart uses runnable data and options to demonstrate horizontal and vertical bars; automatic total and segment labels.
StatusLoading
barhorizontal and vertical barsautomatic total and segment labelsLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Bar chart uses runnable data and options to demonstrate horizontal and vertical bars; automatic total and segment labels.",
"text": "Bar"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#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": "Bar example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Bar chart uses runnable data and options to demonstrate horizontal and vertical bars; automatic total and segment labels.",
"text": "Bar"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}Column chart uses runnable data and options to demonstrate grouped layers; worker-bounded virtualization.
StatusLoading
columngrouped layersworker-bounded virtualizationLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Insights | 86 |
| Dashboards | 78 |
| Reports | 69 |
| Alerts | 61 |
| Models | 48 |
| Exports | 37 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Column chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Column chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"orientation": "vertical"
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Column chart uses runnable data and options to demonstrate grouped layers; worker-bounded virtualization.",
"text": "Bar · Column chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.column('#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": "Bar · Column chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Column chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"orientation": "vertical"
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Column chart uses runnable data and options to demonstrate grouped layers; worker-bounded virtualization.",
"text": "Bar · Column chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Pictorial bar chart uses runnable data and options to demonstrate positive and negative baseline.
StatusLoading
pictorial-barpositive and negative baselineLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Insights | 86 |
| Dashboards | 78 |
| Reports | 69 |
| Alerts | 61 |
| Models | 48 |
| Exports | 37 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Pictorial bar chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Pictorial bar chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"options": {
"symbol": "diamond"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Pictorial bar chart uses runnable data and options to demonstrate positive and negative baseline.",
"text": "Bar · Pictorial bar chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.pictorialBar('#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": "Bar · Pictorial bar chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Pictorial bar chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"options": {
"symbol": "diamond"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Pictorial bar chart uses runnable data and options to demonstrate positive and negative baseline.",
"text": "Bar · Pictorial bar chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Bullet chart uses runnable data and options to demonstrate single-layer grouped, stacked, 100 percent and diverging series.
StatusLoading
bulletsingle-layer grouped, stacked, 100 percent and diverging seriesLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative | targetquantitative |
|---|---|---|
| Reliability | 99.93 | 99.9 |
| Fast responses | 94 | 92 |
| Accessible flows | 91 | 95 |
| Successful exports | 97 | 98 |
Browser API
const data = [
{
"category": "Reliability",
"previous": 99.84,
"target": 99.9,
"value": 99.93
},
{
"category": "Fast responses",
"previous": 89,
"target": 92,
"value": 94
},
{
"category": "Accessible flows",
"previous": 82,
"target": 95,
"value": 91
},
{
"category": "Successful exports",
"previous": 94,
"target": 98,
"value": 97
}
];
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": "Bar · Bullet chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "target",
"format": "number",
"label": "Target"
}
],
"title": "Bar · Bullet chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Bullet chart uses runnable data and options to demonstrate single-layer grouped, stacked, 100 percent and diverging series.",
"text": "Bar · Bullet chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.bullet('#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": "Bar · Bullet chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "target",
"format": "number",
"label": "Target"
}
],
"title": "Bar · Bullet chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Bullet chart uses runnable data and options to demonstrate single-layer grouped, stacked, 100 percent and diverging series.",
"text": "Bar · Bullet chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Column pyramid chart uses runnable data and options to demonstrate signed stack totals, percentages, source lineage and datum hits.
StatusLoading
column-pyramidsigned stack totals, percentages, source lineage and datum hitsLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Insights | 86 |
| Dashboards | 78 |
| Reports | 69 |
| Alerts | 61 |
| Models | 48 |
| Exports | 37 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Column pyramid chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Column pyramid chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"options": {
"variant": "column-pyramid"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Column pyramid chart uses runnable data and options to demonstrate signed stack totals, percentages, source lineage and datum hits.",
"text": "Bar · Column pyramid chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.columnPyramid('#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": "Bar · Column pyramid chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Column pyramid chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"options": {
"variant": "column-pyramid"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Column pyramid chart uses runnable data and options to demonstrate signed stack totals, percentages, source lineage and datum hits.",
"text": "Bar · Column pyramid chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Cylinder chart uses runnable data and options to demonstrate stack ordering and zero/normalize offsets.
StatusLoading
cylinderstack ordering and zero/normalize offsetsLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Insights | 86 |
| Dashboards | 78 |
| Reports | 69 |
| Alerts | 61 |
| Models | 48 |
| Exports | 37 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Cylinder chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Cylinder chart",
"trigger": "axis"
}
},
"locale": "en",
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Cylinder chart uses runnable data and options to demonstrate stack ordering and zero/normalize offsets.",
"text": "Bar · Cylinder chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.cylinder('#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": "Bar · Cylinder chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Cylinder chart",
"trigger": "axis"
}
},
"locale": "en",
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Cylinder chart uses runnable data and options to demonstrate stack ordering and zero/normalize offsets.",
"text": "Bar · Cylinder chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Lollipop chart uses runnable data and options to demonstrate bullet/lollipop/pictorial/cylinder/pyramid/variable-width modes.
StatusLoading
lollipopbullet/lollipop/pictorial/cylinder/pyramid/variable-width modesLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Insights | 86 |
| Dashboards | 78 |
| Reports | 69 |
| Alerts | 61 |
| Models | 48 |
| Exports | 37 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Lollipop chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Lollipop chart",
"trigger": "axis"
}
},
"locale": "en",
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Lollipop chart uses runnable data and options to demonstrate bullet/lollipop/pictorial/cylinder/pyramid/variable-width modes.",
"text": "Bar · Lollipop chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.lollipop('#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": "Bar · Lollipop chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Lollipop chart",
"trigger": "axis"
}
},
"locale": "en",
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Lollipop chart uses runnable data and options to demonstrate bullet/lollipop/pictorial/cylinder/pyramid/variable-width modes.",
"text": "Bar · Lollipop chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Pictorial column chart uses runnable data and options to demonstrate weighted count.
StatusLoading
pictorial-columnweighted countLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative |
|---|---|
| Insights | 86 |
| Dashboards | 78 |
| Reports | 69 |
| Alerts | 61 |
| Models | 48 |
| Exports | 37 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Pictorial column chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Pictorial column chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"options": {
"symbol": "diamond"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Pictorial column chart uses runnable data and options to demonstrate weighted count.",
"text": "Bar · Pictorial column chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.pictorialColumn('#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": "Bar · Pictorial column chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Bar · Pictorial column chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"options": {
"symbol": "diamond"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Pictorial column chart uses runnable data and options to demonstrate weighted count.",
"text": "Bar · Pictorial column chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
}Variable width column chart uses runnable data and options to demonstrate interactive sort and rank.
StatusLoading
variable-widthinteractive sort and rankLoading
Row data and zero-copy TypedArray columns share one data contract.
categoryordinal | valuequantitative | widthquantitative |
|---|---|---|
| Insights | 86 | 24 |
| Dashboards | 78 | 21 |
| Reports | 69 | 18 |
| Alerts | 61 | 15 |
| Models | 48 | 12 |
| Exports | 37 | 10 |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
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": "Bar · Variable width column chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "width",
"format": "number",
"label": "Width"
}
],
"title": "Bar · Variable width column chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"width": "width"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Variable width column chart uses runnable data and options to demonstrate interactive sort and rank.",
"text": "Bar · Variable width column chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
}
};
Graflume.variableWidth('#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": "Bar · Variable width column chart example"
},
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"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": {
"axis": "x",
"fields": [
{
"field": "category",
"format": "auto",
"label": "Category"
},
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "width",
"format": "number",
"label": "Width"
}
],
"title": "Bar · Variable width column chart",
"trigger": "axis"
}
},
"locale": "en",
"mark": {
"fields": {
"width": "width"
}
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Variable width column chart uses runnable data and options to demonstrate interactive sort and rank.",
"text": "Bar · Variable width column chart"
},
"width": "container",
"x": {
"field": "category",
"title": "Capability",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Adoption (%)",
"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.
valuequantitative | categoryordinal |
|---|---|
| -1e+12 | Insights |
| -1e-09 | Dashboards |
| 0 | Reports |
| 1e+12 | Alerts |
| 1e-09 | Models |
| 1e+06 | Exports |
Browser API
const data = [
{
"category": "Insights",
"value": -1000000000000
},
{
"category": "Dashboards",
"value": -1e-9
},
{
"category": "Reports",
"value": 0
},
{
"category": "Alerts",
"value": 1000000000000
},
{
"category": "Models",
"value": 1e-9
},
{
"category": "Exports",
"value": 1000000
}
];
const options = {
"accessibility": {
"description": "Feature adoption, ordered so the leading capability is immediately clear. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bar"
},
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"title": {
"subtitle": "edge case · range",
"text": "Bar"
},
"width": "container",
"x": {
"field": "value",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.bar('#chart', data, options);Portable schema
{
"accessibility": {
"description": "Feature adoption, ordered so the leading capability is immediately clear. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bar"
},
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"title": {
"subtitle": "edge case · range",
"text": "Bar"
},
"width": "container",
"x": {
"field": "value",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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-keynullbudget:marks<=7Loading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| — | Dashboards |
| 86 | Insights |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"value": 86
},
{
"category": "Dashboards",
"value": null
},
{
"category": "Insights",
"value": 86
},
{
"category": "Reports",
"value": 69
},
{
"category": "Alerts",
"value": 61
},
{
"category": "Models",
"value": 48
},
{
"category": "Exports",
"value": 37
}
];
const options = {
"accessibility": {
"description": "Feature adoption, ordered so the leading capability is immediately clear. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bar · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"title": {
"subtitle": "edge case · structure",
"text": "Bar · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.bar('#chart', data, options);Portable schema
{
"accessibility": {
"description": "Feature adoption, ordered so the leading capability is immediately clear. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bar · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"title": {
"subtitle": "edge case · structure",
"text": "Bar · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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 events and bounds rendered bar marks at 12,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:60000zoom-pan-resetbudget:bar-marks<=12000legend · layers · one serieshighlights[] · datum · categoryannotations[] · datum · category · callout · placement:autoLoading
Browser API
const recipe = {
"cardinality": {
"axes": {},
"sourceRows": 60000,
"unit": "events"
},
"expectedInvariants": [
"finite-json",
"category-order-preserved"
],
"id": "categorical-events",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 12000,
"resource": "bar-marks"
},
"parameters": {
"family": "bar",
"nullableFields": [
"value"
],
"positiveFields": [],
"scenario": "volume",
"valueFields": [
"value"
],
"valuePolicy": "signed"
},
"preview": {
"maximumRows": 12,
"method": "top-groups"
},
"reduction": {
"method": "group-sum-top-k",
"stage": "pre-aggregate"
},
"seed": 618002738,
"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": "Bar · 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": "Alerts"
},
"text": "Point and range highlights · 946.4"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Alerts"
}
}
],
"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": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar · High data volume",
"trigger": "axis"
}
},
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Bar · High data volume",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Bar · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Feature adoption, ordered so the leading capability is immediately clear · 60,000 logical rows, screen-aware detail",
"text": "Bar · High data volume"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.bar('#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": "Bar · 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": "Alerts"
},
"text": "Point and range highlights · 946.4"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 60000
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Alerts"
}
}
],
"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": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar · High data volume",
"trigger": "axis"
}
},
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Bar · High data volume",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Bar · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Feature adoption, ordered so the leading capability is immediately clear · 60,000 logical rows, screen-aware detail",
"text": "Bar · High data volume"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}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 · layers · one serieshighlights[] · datum · categoryannotations[] · datum · category · callout · placement:autoselection · multiple · toggleLoading
Row data and zero-copy TypedArray columns share one data contract.
valuequantitative | categoryordinal |
|---|---|
| 86 | Insights |
| 78 | Dashboards |
| 69 | Reports |
| 61 | Alerts |
| 48 | Models |
| 37 | Exports |
Browser API
const data = [
{
"category": "Insights",
"high": 91,
"low": 81,
"previous": 74,
"target": 88,
"value": 86,
"width": 24
},
{
"category": "Dashboards",
"high": 84,
"low": 72,
"previous": 69,
"target": 82,
"value": 78,
"width": 21
},
{
"category": "Reports",
"high": 76,
"low": 63,
"previous": 65,
"target": 74,
"value": 69,
"width": 18
},
{
"category": "Alerts",
"high": 68,
"low": 55,
"previous": 48,
"target": 66,
"value": 61,
"width": 15
},
{
"category": "Models",
"high": 56,
"low": 42,
"previous": 41,
"target": 55,
"value": 48,
"width": 12
},
{
"category": "Exports",
"high": 45,
"low": 31,
"previous": 34,
"target": 44,
"value": 37,
"width": 10
}
];
const options = {
"accessibility": {
"description": "Feature adoption, ordered so the leading capability is immediately clear. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bar chart: Feature adoption, ordered so the leading capability is immediately clear"
},
"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": "Alerts"
},
"text": "Point and range highlights · 61"
}
],
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Alerts"
}
}
],
"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": "category",
"mode": "multiple",
"toggle": true
},
"tooltip": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar",
"trigger": "axis"
}
},
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Bar",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Bar",
"visible": true
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Feature adoption, ordered so the leading capability is immediately clear",
"text": "Bar chart"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
};
Graflume.horizontalBar('#chart', data, options);Portable schema
{
"accessibility": {
"description": "Feature adoption, ordered so the leading capability is immediately clear. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Bar chart: Feature adoption, ordered so the leading capability is immediately clear"
},
"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": "Alerts"
},
"text": "Point and range highlights · 61"
}
],
"axes": {
"x": {
"labels": {
"maxLength": 18,
"orientation": "vertical-up",
"padding": 10
},
"ticks": {
"spacing": 10
}
},
"y": {
"format": {
"type": "compact"
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "category",
"type": "datum",
"value": "Alerts"
}
}
],
"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": "category",
"mode": "multiple",
"toggle": true
},
"tooltip": {
"axis": "x",
"fields": [
{
"field": "value",
"format": "number",
"label": "Value"
},
{
"field": "category",
"format": "auto",
"label": "Category"
}
],
"title": "Bar",
"trigger": "axis"
}
},
"legend": {
"interactive": true,
"items": [
{
"id": "series",
"label": "Bar",
"layerId": "layer-0"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Bar",
"visible": true
},
"locale": "en",
"mark": {
"orientation": "horizontal"
},
"padding": {
"bottom": 112,
"left": 64,
"right": 30,
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Feature adoption, ordered so the leading capability is immediately clear",
"text": "Bar chart"
},
"width": "container",
"x": {
"field": "value",
"title": "Adoption (%)",
"type": "quantitative"
},
"y": {
"field": "category",
"title": "Capability",
"type": "ordinal"
}
}Catalog
The source-controlled catalog maps callable modes in this family and compatibility identifiers to their canonical modes. This table contains executable entries only.
9 modes · 8 compatibility identifiers
| ID | Name | Quick API | mode | mark | renderer |
|---|---|---|---|---|---|
bar | Bar chart | horizontalBar() | horizontal | bar | canvas |
column | Column chart | column() | vertical | bar | canvas |
pictorial-bar | Pictorial bar chart | pictorialBar() | pictorial | pictorial-bar | canvas |
bullet | Bullet chart | bullet() | bullet | bullet | canvas |
column-pyramid | Column pyramid chart | columnPyramid() | column-pyramid | pyramid | canvas |
cylinder | Cylinder chart | cylinder() | cylinder | cylinder | canvas |
lollipop | Lollipop chart | lollipop() | lollipop | lollipop | canvas |
pictorial-column | Pictorial column chart | pictorialColumn() | pictorial-column | pictorial-bar | canvas |
variable-width | Variable width column chart | variableWidth() | variable-width | variwide | canvas |
| Identifier | Canonical mode ID |
|---|---|
bar | bar |
bullet | bullet |
column | column |
columnpyramid | column-pyramid |
cylinder | cylinder |
lollipop | lollipop |
pictorial | pictorial-column |
variwide | variable-width |
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.