Network
Explore connections and groups among people or other entities.
Network
The smallest runnable chart
Explore the chart and its data table. Open the code below to use this example.
Basic example
Loading
Basic example · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}- Quick API
network()- Browser snapshot
graflume/complete- mark
graph- Presets
- 4
minimal-implementation
Common features
Features shared by every chart
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.
Header
Add a chart title and supporting description inside the visualization.
Loading
Header · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"title": {
"subtitle": "Graph chart uses runnable data and options to demonstrate stable node/source/target IDs; tree preset.",
"text": "Network"
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"title": {
"subtitle": "Graph chart uses runnable data and options to demonstrate stable node/source/target IDs; tree preset.",
"text": "Network"
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}header
Tooltip
Reveal exact values from a mark or axis position. Authors can choose locale-aware date/time styles and a time zone with declarative options.
Loading
Tooltip · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"field": "node",
"format": "auto",
"label": "Node"
},
{
"field": "degree",
"format": "integer",
"label": "Degree"
},
{
"field": "total",
"format": "number",
"label": "Total"
},
{
"field": "source",
"format": "auto",
"label": "Source"
},
{
"field": "target",
"format": "auto",
"label": "Target"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Network · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"field": "node",
"format": "auto",
"label": "Node"
},
{
"field": "degree",
"format": "integer",
"label": "Degree"
},
{
"field": "total",
"format": "number",
"label": "Total"
},
{
"field": "source",
"format": "auto",
"label": "Source"
},
{
"field": "target",
"format": "auto",
"label": "Target"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Network · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}tooltip
Theme
Apply the current built-in theme from the selector and update every active example together.
Loading
Theme · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}theme
Legend
Explain the visual meaning of layers, categories, or continuous values.
Loading
Legend · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Nodes"
},
{
"id": "semantic-1",
"label": "Links"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Network · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Nodes"
},
{
"id": "semantic-1",
"label": "Links"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Network · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}legend
- Legend:
legend · explicit · 2 channels
Highlight
Emphasize a representative datum or spatial position to guide inspection.
Loading
Highlight · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "target",
"type": "datum",
"value": "Reports"
}
}
],
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "target",
"type": "datum",
"value": "Reports"
}
}
],
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}highlight
- Point and range highlights:
highlights[] · datum · target
Callout
Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
Loading
Callout · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 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": "target",
"type": "datum",
"value": "Reports"
},
"text": "Point and range highlights · Aggregated"
}
],
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"controls": {
"annotations": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
}
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · 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": "target",
"type": "datum",
"value": "Reports"
},
"text": "Point and range highlights · Aggregated"
}
],
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"controls": {
"annotations": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
}
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}callout
- Custom callouts:
annotations[] · datum · target · callout · placement:auto
Selection
Select and toggle data, then clear it from the background or Escape key.
Loading
Selection · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "target",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "target",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}selection
- Interactive selection:
selection · multiple · toggle
View controls
Show or hide zoom, pan, reset, projection, fullscreen, and PNG export one menu at a time. Set controls: false to remove the entire toolbar.
Loading
View controls · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 10
}
];
const options = {
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"axes": {
"x": false,
"y": false
},
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}controls
Accessibility
Pair ARIA descriptions and keyboard guidance with a semantic data table.
Loading
Accessibility · Row data
Row data and zero-copy TypedArray columns share one data contract.
sourceordinal | valuequantitative | targetordinal |
|---|---|---|
| Collected | 86 | Validated |
| Collected | 14 | Review queue |
| Validated | 58 | Aggregated |
| Validated | 28 | Exploration |
| Aggregated | 36 | Reports |
| Aggregated | 22 | Alerts |
| Exploration | 18 | Models |
| Exploration | 10 | Exports |
View code and settings
Browser API
Graflume.graph()
const data = [
{
"source": "Collected",
"target": "Validated",
"value": 86
},
{
"source": "Collected",
"target": "Review queue",
"value": 14
},
{
"source": "Validated",
"target": "Aggregated",
"value": 58
},
{
"source": "Validated",
"target": "Exploration",
"value": 28
},
{
"source": "Aggregated",
"target": "Reports",
"value": 36
},
{
"source": "Aggregated",
"target": "Alerts",
"value": 22
},
{
"source": "Exploration",
"target": "Models",
"value": 18
},
{
"source": "Exploration",
"target": "Exports",
"value": 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": "Network · Accessibility example"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
};
Graflume.graph('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
"label": "Network · Accessibility example"
},
"axes": {
"x": false,
"y": false
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"target": "target",
"value": "value"
},
"options": {
"iterations": 240,
"layout": "force",
"nodeSpacing": 0.08,
"routing": "straight",
"seed": 1
}
},
"width": "container",
"x": {
"field": "source",
"title": "Workflow node",
"type": "ordinal"
},
"y": {
"field": "value",
"title": "Interactions",
"type": "quantitative"
}
}accessibility