ARIA · table fallbackAccessibility
Canvas ARIA metadata is paired with a text summary and table fallback.
Graflume · Alpha
Build an interactive raster from explicit cell coordinates and RGB values stored as rows.
Chart family · Advanced families
Build an interactive raster from explicit cell coordinates and RGB values stored as rows.
image()graflume/completeimageBasic implementation
Start with only the required data and family encoding. Expand the code to run the same example.
Build an interactive raster from explicit cell coordinates and RGB values stored as rows.
StatusLoading
minimal-implementationLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Common features
Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time. Hover over a data mark. On supported charts, move the pointer along the axis to see the nearest value. All exact values are available in the table below.
Add a chart title and supporting description inside the visualization.
StatusLoading
headerLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"title": {
"subtitle": "Raster image uses runnable data and options to demonstrate row RGB/RGBA or explicit color pixels; numeric and band coordinates.",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"title": {
"subtitle": "Raster image uses runnable data and options to demonstrate row RGB/RGBA or explicit color pixels; numeric and band coordinates.",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Reveal exact values from a mark or axis position. Authors can choose locale-aware date/time styles and a time zone with declarative options.
StatusLoading
tooltipLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"interaction": {
"hover": true,
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Apply the current built-in theme from the selector and update every active example together.
StatusLoading
themeLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Explain the visual meaning of layers, categories, or continuous values.
StatusLoading
legendlegend · explicit · 3 channelsLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image · Legend",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Emphasize a representative datum or spatial position to guide inspection.
StatusLoading
highlighthighlights[] · datum · rowIndexLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"rowIndex": 48,
"type": "datum"
}
}
],
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"rowIndex": 48,
"type": "datum"
}
}
],
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
StatusLoading
calloutannotations[] · datum · rowIndex · callout · placement:autoLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
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": {
"rowIndex": 48,
"type": "datum"
},
"text": "Point and range highlights · 0"
}
],
"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": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#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": {
"rowIndex": 48,
"type": "datum"
},
"text": "Point and range highlights · 0"
}
],
"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": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Select and toggle data, then clear it from the background or Escape key.
StatusLoading
selectionselection · multiple · toggleLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Show or hide zoom, pan, reset, projection, fullscreen, and PNG export one menu at a time. Set controls: false to remove the entire toolbar.
StatusLoading
controlsLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Pair ARIA descriptions and keyboard guidance with a semantic data table.
StatusLoading
accessibilityLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
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": "Raster image · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#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": "Raster image · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Chart-specific features
These tabs come from Graflume's public catalog. Every mode owns runnable data, options, a Quick API, and source-backed feature claims.
Raster image uses runnable data and options to demonstrate row RGB/RGBA or explicit color pixels; numeric and band coordinates.
StatusLoading
imagerow RGB/RGBA or explicit color pixelsnumeric and band coordinatesexact pixel hitRGBA channel compositionextent and originresamplingcolormap and window mappingLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
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": "Raster image example"
},
"axes": {
"x": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
},
"y": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
}
},
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Raster image uses runnable data and options to demonstrate row RGB/RGBA or explicit color pixels; numeric and band coordinates.",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#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": "Raster image example"
},
"axes": {
"x": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
},
"y": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
}
},
"height": 620,
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Raster image uses runnable data and options to demonstrate row RGB/RGBA or explicit color pixels; numeric and band coordinates.",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"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-rangecolor-channel-boundaryzerodomain-boundarybudget:marks<=6Loading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 127 |
| 1 | 0 | 1 | 127 | 254 |
| 2 | 0 | 127 | 254 | 255 |
| 3 | 0 | 254 | 255 | 0 |
| 4 | 0 | 255 | 0 | 0 |
| 5 | 0 | 0 | 0 | 1 |
Browser API
const data = [
{
"blue": 127,
"green": 1,
"red": 0,
"x": 0,
"y": 0
},
{
"blue": 254,
"green": 127,
"red": 1,
"x": 1,
"y": 0
},
{
"blue": 255,
"green": 254,
"red": 127,
"x": 2,
"y": 0
},
{
"blue": 0,
"green": 255,
"red": 254,
"x": 3,
"y": 0
},
{
"blue": 0,
"green": 0,
"red": 255,
"x": 4,
"y": 0
},
{
"blue": 1,
"green": 0,
"red": 0,
"x": 5,
"y": 0
}
];
const options = {
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Exercise only duplicate, missing, sparse, or out-of-order structures whose meaning is defined for this family. Broken references and malformed tuples are never disguised as successful examples. It applies 3 structural rules that preserve the meaning of missing, duplicate, and ordered values.
StatusLoading
irregular-structuresparseduplicate-cellout-of-ordernullbudget:marks<=7Loading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 2 | 0 | 66 | 52 | 207 |
| 0 | 0 | — | 52 | 224 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 1 | 0 | 49 | 52 | 216 |
Browser API
const data = [
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 224,
"green": 52,
"red": null,
"x": 0,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
}
];
const options = {
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Raster image · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Raster image · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Materialize a deterministic compact recipe only when this tab opens. Graflume's performance profile bounds mark count, hit testing, and animation work for the input size. It applies 6 high-volume rules for deterministic generation and bounded output. This family materializes 262,144 logical cells and bounds rendered bar marks at 12,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:262144zoom-pan-resetbudget:bar-marks<=12000legend · explicit · 3 channelshighlights[] · datum · xannotations[] · datum · x · callout · placement:autoLoading
Browser API
const recipe = {
"cardinality": {
"axes": {
"columns": 512,
"rows": 512
},
"sourceRows": 262144,
"unit": "cells"
},
"expectedInvariants": [
"finite-json",
"rgb-channel-closed-0-255"
],
"id": "grid-2d",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 12000,
"resource": "bar-marks"
},
"parameters": {
"columns": 512,
"family": "image",
"nullableFields": [
"red"
],
"positiveFields": [],
"rows": 512,
"scenario": "volume",
"valueFields": [
"red",
"green",
"blue"
],
"valuePolicy": "color-channel"
},
"preview": {
"maximumRows": 12,
"method": "spatial-slice"
},
"reduction": {
"method": "area-weighted-grid-downsample",
"stage": "level-of-detail"
},
"seed": 3753050898,
"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": "Raster image · High data volume"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "x",
"type": "datum",
"value": 25
},
"text": "Point and range highlights · 25"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 262144
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": 25
}
}
],
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "A smooth calibration raster demonstrates color and pixel inspection · 262,144 logical rows, screen-aware detail",
"text": "Raster image · High data volume"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#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": "Raster image · High data volume"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "x",
"type": "datum",
"value": 25
},
"text": "Point and range highlights · 25"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 262144
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": 25
}
}
],
"interaction": {
"controls": {
"annotations": false,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image · High data volume",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image · High data volume",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "A smooth calibration raster demonstrates color and pixel inspection · 262,144 logical rows, screen-aware detail",
"text": "Raster image · High data volume"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Extreme environments
Combine container size, input method, display capability, and user preference instead of guessing a device name. Compare mobile, watch, e-paper, monochrome, dot-matrix, and standards-based extreme environments on the same chart.
Reflow axes, legends, descriptions, and controls from the available container size.
960×540 · adaptive.profiles=responsive-fluidzoom-reflowshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialPrioritize 44px touch targets, tap tooltips, and collapsed secondary information on a narrow portrait screen.
390×844 · adaptive.profiles=mobile-touchzoom-reflowcoarse-touchvirtual-keyboardshape-rectangledisplay-colorinput-coarsemotion-fullrenderer-canvas-spatialKeep essential marks, values, and stepped controls on a tiny or round screen, with the remaining detail reflowed below.
184×224 · adaptive.profiles=smartwatchzoom-reflowreduced-effectscoarse-touchlow-resourcecutout-roundshape-rounddisplay-colorinput-coarsemotion-reducedrenderer-canvas-spatialviewport-tinyPrefer stable frames, strong contrast, and the data table for low-refresh e-paper displays.
758×1024 · adaptive.profiles=ebook-paperprint-pagedreduced-effectslow-resourceshape-pageddisplay-e-inkinput-keyboardmotion-staticrenderer-canvas-spatialUse strokes, markers, patterns, labels, and the table so color is never the only distinction.
640×400 · adaptive.profiles=monochromereduced-effectsshape-rectangledisplay-monochromeinput-finemotion-reducedrenderer-canvas-spatialReduce decoration and mark density while using strong strokes, integer labels, and stepped zoom on a low-resolution display.
320×240 · adaptive.profiles=dot-matrixzoom-reflowreduced-effectskeyboard-switchlow-resourceshape-rectangledisplay-gridinput-keyboardmotion-staticrenderer-canvas-spatialviewport-tinyReflow prose to one dimension at the 320 CSS px equivalent while retaining chart-local zoom and pan.
320×480 · adaptive.profiles=zoom-reflowzoom-reflowshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialKeep the chart and explanation in independent viewport segments without crossing the hinge.
720×640 · adaptive.profiles=foldable-dualfoldable-dualshape-dualdisplay-colorinput-finemotion-fullrenderer-canvas-spatialProvide strong focus indication and D-pad, Enter, and Escape operation on a hoverless distance display.
1920×1080 · adaptive.profiles=tv-remotetv-remoteshape-rectangledisplay-colorinput-remotemotion-fullrenderer-canvas-spatialPair a static chart with its description and table, hide controls, and avoid page breaks through the figure.
794×1123 · adaptive.profiles=print-pagedprint-pagedshape-pageddisplay-colorinput-finemotion-staticrenderer-canvas-spatialHonor system colors and borders while retaining patterns, markers, and text as redundant cues.
640×400 · adaptive.profiles=forced-colorsforced-colorsshape-rectangledisplay-high-contrastinput-finemotion-fullrenderer-canvas-spatialComplete transitions immediately and use opaque surfaces and deferred work to reduce motion and transparency load.
640×400 · adaptive.profiles=reduced-effectsreduced-effectsshape-rectangledisplay-colorinput-finemotion-reducedrenderer-canvas-spatialInspect values by tap without hover, keep targets at least 44px, and expose explicit zoom buttons.
390×844 · adaptive.profiles=coarse-touchcoarse-touchshape-rectangledisplay-colorinput-coarsemotion-fullrenderer-canvas-spatialReach every operation with Tab, arrows, Enter, Space, and Escape, with no drag-only action.
640×400 · adaptive.profiles=keyboard-switchkeyboard-switchshape-rectangledisplay-colorinput-keyboardmotion-fullrenderer-canvas-spatialPrefer progressive rendering, sampling, cancellable work, and a static fallback under constrained memory or connectivity.
640×400 · adaptive.profiles=low-resourcelow-resourceshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialFollow RTL logical flow for prose and tabs while keeping axes, code, and data identifiers in technical LTR order.
640×400 · adaptive.profiles=rtlrtlshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialReflow vertical prose while keeping the chart and technical surfaces in an independent horizontal panel.
640×400 · adaptive.profiles=vertical-writingvertical-writingshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialCap chart width instead of stretching indefinitely, using panelization and readable labels on ultrawide or projected surfaces.
1920×720 · adaptive.profiles=ultrawide-projectionultrawide-projectionshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialProvide short and long descriptions, a semantic table, and status so Canvas or color is never the sole information path.
640×400 · adaptive.profiles=screenreader-braillescreenreader-brailleshape-nonvisualdisplay-colorinput-nonvisualmotion-fullrenderer-canvas-spatialA verified static preview, description, and collapsible row-data table preserve the essential information when scripting is unavailable.
640×400 · adaptive.profiles=no-scriptno-scriptshape-nonvisualdisplay-colorinput-finemotion-staticrenderer-static-fallbackFall back safely to the ordinary 2D or WebGL panel when XR APIs are absent, duplicating depth cues in text and the table.
640×400 · adaptive.profiles=spatial-xrspatial-xrshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialInset titles, marks, and controls around safe areas and round display bounds so they are not clipped.
184×224 · adaptive.profiles=cutout-roundcutout-roundshape-rounddisplay-colorinput-finemotion-fullrenderer-canvas-spatialviewport-tinyReflow focus controls, the chart, and the active explanation when a virtual keyboard reduces the visual viewport.
390×560 · adaptive.profiles=virtual-keyboardvirtual-keyboardshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatialChoose a profile above to preserve the same data and ChartSpec while reconfiguring the chart for display size, input method, display capability, and user preference.
StatusLoading
adaptivecapability-drivenno-user-agent-branchinglegend · explicit · 3 channelshighlights[] · datum · rowIndexannotations[] · datum · rowIndex · callout · placement:autoselection · multiple · toggleLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image: A smooth calibration raster demonstrates color and pixel inspection"
},
"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": {
"rowIndex": 48,
"type": "datum"
},
"text": "Point and range highlights · 0"
}
],
"axes": {
"x": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
},
"y": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"rowIndex": 48,
"type": "datum"
}
}
],
"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
},
"mode": "multiple",
"toggle": true
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "A smooth calibration raster demonstrates color and pixel inspection",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
{
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image: A smooth calibration raster demonstrates color and pixel inspection"
},
"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": {
"rowIndex": 48,
"type": "datum"
},
"text": "Point and range highlights · 0"
}
],
"axes": {
"x": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
},
"y": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"rowIndex": 48,
"type": "datum"
}
}
],
"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
},
"mode": "multiple",
"toggle": true
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "A smooth calibration raster demonstrates color and pixel inspection",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}Catalog
The source-controlled catalog maps callable modes in this family and compatibility identifiers to their canonical modes. This table contains executable entries only.
1 modes · 0 compatibility identifiers
| ID | Name | Quick API | mode | mark | renderer |
|---|---|---|---|---|---|
image | Raster image | image() | default | image | canvas |
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.