ARIA · table fallbackAccessibility
Canvas ARIA metadata is paired with a text summary and table fallback.
Graflume · Alpha
Represent a scalar grid with filled levels and deterministic contour lines.
Chart family · Specialized families
Represent a scalar grid with filled levels and deterministic contour lines.
contour()graflume/completecontourBasic implementation
Start with only the required data and family encoding. Expand the code to run the same example.
Represent a scalar grid with filled levels and deterministic contour lines.
StatusLoading
minimal-implementationLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"title": {
"subtitle": "Contour chart uses runnable data and options to demonstrate deterministic regular-grid marching-squares isolines; explicit, linear and Type-7 quantile thresholds.",
"text": "Contour"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"title": {
"subtitle": "Contour chart uses runnable data and options to demonstrate deterministic regular-grid marching-squares isolines; explicit, linear and Type-7 quantile thresholds.",
"text": "Contour"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"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": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#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": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour · Tooltip",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"theme": "graflume-light",
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
}Explain the visual meaning of layers, categories, or continuous values.
StatusLoading
legendlegend · continuous · valueLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "Value",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"height": 620,
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "Value",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
}Emphasize a representative datum or spatial position to guide inspection.
StatusLoading
highlighthighlights[] · datum · valueLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "value",
"type": "datum",
"value": 16.946
}
}
],
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "value",
"type": "datum",
"value": 16.946
}
}
],
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
}Show an explanatory callout with automatic collision avoidance and multilingual wrapping.
StatusLoading
calloutannotations[] · datum · value · callout · placement:autoLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"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": {
"field": "value",
"type": "datum",
"value": 16.946
},
"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": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"field": "value",
"type": "datum",
"value": 16.946
},
"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": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "value",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"height": 620,
"interaction": {
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "value",
"mode": "multiple",
"toggle": true
}
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"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": {
"value": "value"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#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": {
"value": "value"
}
},
"padding": {
"top": 52
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"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": "Contour · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#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": "Contour · Accessibility example"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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.
Contour chart uses runnable data and options to demonstrate deterministic regular-grid marching-squares isolines; explicit, linear and Type-7 quantile thresholds.
StatusLoading
contourdeterministic regular-grid marching-squares isolinesexplicit, linear and Type-7 quantile thresholdsthreshold-relative asymptotic saddle decider with explicit high/low policiesnull-cell holes and bounded extractionshared canonical, bivariate and carpet extractoroptional threshold-colored cellsfilled and banded contours with polygon-hole topologytriangulated irregular samplessmoothingLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"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": "Contour example"
},
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2,
3
]
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2
]
}
}
},
"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": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Contour chart uses runnable data and options to demonstrate deterministic regular-grid marching-squares isolines; explicit, linear and Type-7 quantile thresholds.",
"text": "Contour"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#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": "Contour example"
},
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2,
3
]
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2
]
}
}
},
"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": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour",
"trigger": "mark"
}
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Contour chart uses runnable data and options to demonstrate deterministic regular-grid marching-squares isolines; explicit, linear and Type-7 quantile thresholds.",
"text": "Contour"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
}Edge cases
Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.
Mix zero, very small finite values, and very large finite values to verify automatic domains, precision, and stable geometry. NaN and Infinity remain intentionally invalid. It applies 2 data-integrity rules that preserve finite values and axis domains.
StatusLoading
extreme-rangeextreme-smallextreme-largezeromixed-signbudget:marks<=6Loading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | -1e+12 |
| 1 | 0 | -1e-09 |
| 2 | 0 | 0 |
| 3 | 0 | 1e+12 |
| 4 | 0 | 1e-09 |
| 5 | 0 | 1e+06 |
Browser API
const data = [
{
"value": -1000000000000,
"x": 0,
"y": 0
},
{
"value": -1e-9,
"x": 1,
"y": 0
},
{
"value": 0,
"x": 2,
"y": 0
},
{
"value": 1000000000000,
"x": 3,
"y": 0
},
{
"value": 1e-9,
"x": 4,
"y": 0
},
{
"value": 1000000,
"x": 5,
"y": 0
}
];
const options = {
"accessibility": {
"description": "Smooth peaks, a ridge, and a basin produce interpretable contour structure. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Contour"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Contour"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"accessibility": {
"description": "Smooth peaks, a ridge, and a basin produce interpretable contour structure. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Contour"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"title": {
"subtitle": "edge case · range",
"text": "Contour"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"scale": {
"constant": 1,
"type": "symlog"
},
"title": "Vertical bin",
"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-ordernullsaddlebudget:marks<=7Loading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 2 | 0 | 30.375 |
| 0 | 0 | — |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 1 | 0 | 23.692 |
Browser API
const data = [
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": null,
"x": 0,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
}
];
const options = {
"accessibility": {
"description": "Smooth peaks, a ridge, and a basin produce interpretable contour structure. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Contour · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Contour · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"accessibility": {
"description": "Smooth peaks, a ridge, and a basin produce interpretable contour structure. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Contour · Sparse and irregular structure"
},
"height": 620,
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"title": {
"subtitle": "edge case · structure",
"text": "Contour · Sparse and irregular structure"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 65,536 logical cells and bounds rendered line points at 30,000.
StatusLoading
high-row-cardinalityall-input-rows-generatedall-input-rows-processeddeterministic-generationbounded-renderinginput:65536zoom-pan-resetbudget:line-points<=30000legend · continuous · valuehighlights[] · datum · xannotations[] · datum · x · callout · placement:autoLoading
Browser API
const recipe = {
"cardinality": {
"axes": {
"columns": 256,
"rows": 256
},
"sourceRows": 65536,
"unit": "cells"
},
"expectedInvariants": [
"finite-json",
"finite-threshold",
"bounded-contour-segments"
],
"id": "grid-2d",
"initialView": {
"kind": "domain",
"zoom": 1
},
"outputBudget": {
"maximum": 30000,
"resource": "line-points"
},
"parameters": {
"columns": 256,
"family": "contour",
"nullableFields": [
"value"
],
"positiveFields": [],
"rows": 256,
"scenario": "volume",
"valueFields": [
"value"
],
"valuePolicy": "signed"
},
"preview": {
"maximumRows": 12,
"method": "spatial-slice"
},
"reduction": {
"method": "area-weighted-grid-downsample",
"stage": "level-of-detail"
},
"seed": 2285975051,
"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": "Contour · 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": -0.46835
},
"text": "Point and range highlights · -0.46835"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 65536
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": -0.46835
}
}
],
"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": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "Value",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Smooth peaks, a ridge, and a basin produce interpretable contour structure · 65,536 logical rows, screen-aware detail",
"text": "Contour · High data volume"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#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": "Contour · 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": -0.46835
},
"text": "Point and range highlights · -0.46835"
}
],
"create": {
"adaptive": {
"environment": {
"rowCount": 65536
},
"largeDataNavigation": true,
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "x",
"type": "datum",
"value": -0.46835
}
}
],
"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": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour · High data volume",
"trigger": "mark"
}
},
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "Value",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"padding": {
"top": 52
},
"performance": "auto",
"theme": "graflume-light",
"title": {
"subtitle": "Smooth peaks, a ridge, and a basin produce interpretable contour structure · 65,536 logical rows, screen-aware detail",
"text": "Contour · High data volume"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 · continuous · valuehighlights[] · datum · valueannotations[] · datum · value · callout · placement:autoselection · multiple · toggleLoading
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | valuequantitative |
|---|---|---|
| 0 | 0 | 19.342 |
| 1 | 0 | 23.692 |
| 2 | 0 | 30.375 |
| 3 | 0 | 35.875 |
| 4 | 0 | 35.843 |
| 5 | 0 | 29.381 |
| 6 | 0 | 19.872 |
| 7 | 0 | 11.62 |
| 8 | 0 | 6.6 |
| 9 | 0 | 4.304 |
| 10 | 0 | 3.445 |
| 11 | 0 | 3.145 |
| 0 | 1 | 26.5 |
| 1 | 1 | 39.914 |
| 2 | 1 | 53.905 |
| 3 | 1 | 62.722 |
| 4 | 1 | 60.939 |
| 5 | 1 | 48.629 |
| 6 | 1 | 32.011 |
| 7 | 1 | 18.177 |
| 8 | 1 | 10.033 |
| 9 | 1 | 6.276 |
| 10 | 1 | 4.575 |
| 11 | 1 | 3.674 |
| 0 | 2 | 23.721 |
| 1 | 2 | 44.273 |
| 2 | 2 | 68.463 |
| 3 | 2 | 85.571 |
| 4 | 2 | 85.778 |
| 5 | 2 | 69.134 |
| 6 | 2 | 45.848 |
| 7 | 2 | 27.125 |
| 8 | 2 | 16.847 |
| 9 | 2 | 11.918 |
| 10 | 2 | 8.491 |
| 11 | 2 | 5.65 |
| 0 | 3 | 20.436 |
| 1 | 3 | 39.635 |
| 2 | 3 | 64.15 |
| 3 | 3 | 84.275 |
| 4 | 3 | 89.407 |
| 5 | 3 | 77.438 |
| 6 | 3 | 57.334 |
| 7 | 3 | 40.924 |
| 8 | 3 | 32.23 |
| 9 | 3 | 26.345 |
| 10 | 3 | 18.692 |
| 11 | 3 | 10.778 |
| 0 | 4 | 16.946 |
| 1 | 4 | 31.996 |
| 2 | 4 | 50.804 |
| 3 | 4 | 65.794 |
| 4 | 4 | 69.629 |
| 5 | 4 | 62.612 |
| 6 | 4 | 53.611 |
| 7 | 4 | 51.41 |
| 8 | 4 | 54.19 |
| 9 | 4 | 51.132 |
| 10 | 4 | 37.392 |
| 11 | 4 | 20.559 |
| 0 | 5 | 12.113 |
| 1 | 5 | 21.902 |
| 2 | 5 | 34.001 |
| 3 | 5 | 43.3 |
| 4 | 5 | 45.061 |
| 5 | 5 | 40.583 |
| 6 | 5 | 38.468 |
| 7 | 5 | 46.908 |
| 8 | 5 | 61.621 |
| 9 | 5 | 66.662 |
| 10 | 5 | 53.82 |
| 11 | 5 | 32.705 |
| 0 | 6 | 7.715 |
| 1 | 6 | 12.779 |
| 2 | 6 | 19.035 |
| 3 | 6 | 23.839 |
| 4 | 6 | 24.834 |
| 5 | 6 | 23.214 |
| 6 | 6 | 24.759 |
| 7 | 6 | 34.859 |
| 8 | 6 | 49.474 |
| 9 | 6 | 55.699 |
| 10 | 6 | 47.461 |
| 11 | 6 | 32.902 |
| 0 | 7 | 4.928 |
| 1 | 7 | 7 |
| 2 | 7 | 9.559 |
| 3 | 7 | 11.538 |
| 4 | 7 | 12.049 |
| 5 | 7 | 11.892 |
| 6 | 7 | 14.112 |
| 7 | 7 | 21.319 |
| 8 | 7 | 30.492 |
| 9 | 7 | 33.608 |
| 10 | 7 | 27.669 |
| 11 | 7 | 19.134 |
Browser API
const data = [
{
"value": 19.342,
"x": 0,
"y": 0
},
{
"value": 23.692,
"x": 1,
"y": 0
},
{
"value": 30.375,
"x": 2,
"y": 0
},
{
"value": 35.875,
"x": 3,
"y": 0
},
{
"value": 35.843,
"x": 4,
"y": 0
},
{
"value": 29.381,
"x": 5,
"y": 0
},
{
"value": 19.872,
"x": 6,
"y": 0
},
{
"value": 11.62,
"x": 7,
"y": 0
},
{
"value": 6.6,
"x": 8,
"y": 0
},
{
"value": 4.304,
"x": 9,
"y": 0
},
{
"value": 3.445,
"x": 10,
"y": 0
},
{
"value": 3.145,
"x": 11,
"y": 0
},
{
"value": 26.5,
"x": 0,
"y": 1
},
{
"value": 39.914,
"x": 1,
"y": 1
},
{
"value": 53.905,
"x": 2,
"y": 1
},
{
"value": 62.722,
"x": 3,
"y": 1
},
{
"value": 60.939,
"x": 4,
"y": 1
},
{
"value": 48.629,
"x": 5,
"y": 1
},
{
"value": 32.011,
"x": 6,
"y": 1
},
{
"value": 18.177,
"x": 7,
"y": 1
},
{
"value": 10.033,
"x": 8,
"y": 1
},
{
"value": 6.276,
"x": 9,
"y": 1
},
{
"value": 4.575,
"x": 10,
"y": 1
},
{
"value": 3.674,
"x": 11,
"y": 1
},
{
"value": 23.721,
"x": 0,
"y": 2
},
{
"value": 44.273,
"x": 1,
"y": 2
},
{
"value": 68.463,
"x": 2,
"y": 2
},
{
"value": 85.571,
"x": 3,
"y": 2
},
{
"value": 85.778,
"x": 4,
"y": 2
},
{
"value": 69.134,
"x": 5,
"y": 2
},
{
"value": 45.848,
"x": 6,
"y": 2
},
{
"value": 27.125,
"x": 7,
"y": 2
},
{
"value": 16.847,
"x": 8,
"y": 2
},
{
"value": 11.918,
"x": 9,
"y": 2
},
{
"value": 8.491,
"x": 10,
"y": 2
},
{
"value": 5.65,
"x": 11,
"y": 2
},
{
"value": 20.436,
"x": 0,
"y": 3
},
{
"value": 39.635,
"x": 1,
"y": 3
},
{
"value": 64.15,
"x": 2,
"y": 3
},
{
"value": 84.275,
"x": 3,
"y": 3
},
{
"value": 89.407,
"x": 4,
"y": 3
},
{
"value": 77.438,
"x": 5,
"y": 3
},
{
"value": 57.334,
"x": 6,
"y": 3
},
{
"value": 40.924,
"x": 7,
"y": 3
},
{
"value": 32.23,
"x": 8,
"y": 3
},
{
"value": 26.345,
"x": 9,
"y": 3
},
{
"value": 18.692,
"x": 10,
"y": 3
},
{
"value": 10.778,
"x": 11,
"y": 3
},
{
"value": 16.946,
"x": 0,
"y": 4
},
{
"value": 31.996,
"x": 1,
"y": 4
},
{
"value": 50.804,
"x": 2,
"y": 4
},
{
"value": 65.794,
"x": 3,
"y": 4
},
{
"value": 69.629,
"x": 4,
"y": 4
},
{
"value": 62.612,
"x": 5,
"y": 4
},
{
"value": 53.611,
"x": 6,
"y": 4
},
{
"value": 51.41,
"x": 7,
"y": 4
},
{
"value": 54.19,
"x": 8,
"y": 4
},
{
"value": 51.132,
"x": 9,
"y": 4
},
{
"value": 37.392,
"x": 10,
"y": 4
},
{
"value": 20.559,
"x": 11,
"y": 4
},
{
"value": 12.113,
"x": 0,
"y": 5
},
{
"value": 21.902,
"x": 1,
"y": 5
},
{
"value": 34.001,
"x": 2,
"y": 5
},
{
"value": 43.3,
"x": 3,
"y": 5
},
{
"value": 45.061,
"x": 4,
"y": 5
},
{
"value": 40.583,
"x": 5,
"y": 5
},
{
"value": 38.468,
"x": 6,
"y": 5
},
{
"value": 46.908,
"x": 7,
"y": 5
},
{
"value": 61.621,
"x": 8,
"y": 5
},
{
"value": 66.662,
"x": 9,
"y": 5
},
{
"value": 53.82,
"x": 10,
"y": 5
},
{
"value": 32.705,
"x": 11,
"y": 5
},
{
"value": 7.715,
"x": 0,
"y": 6
},
{
"value": 12.779,
"x": 1,
"y": 6
},
{
"value": 19.035,
"x": 2,
"y": 6
},
{
"value": 23.839,
"x": 3,
"y": 6
},
{
"value": 24.834,
"x": 4,
"y": 6
},
{
"value": 23.214,
"x": 5,
"y": 6
},
{
"value": 24.759,
"x": 6,
"y": 6
},
{
"value": 34.859,
"x": 7,
"y": 6
},
{
"value": 49.474,
"x": 8,
"y": 6
},
{
"value": 55.699,
"x": 9,
"y": 6
},
{
"value": 47.461,
"x": 10,
"y": 6
},
{
"value": 32.902,
"x": 11,
"y": 6
},
{
"value": 4.928,
"x": 0,
"y": 7
},
{
"value": 7,
"x": 1,
"y": 7
},
{
"value": 9.559,
"x": 2,
"y": 7
},
{
"value": 11.538,
"x": 3,
"y": 7
},
{
"value": 12.049,
"x": 4,
"y": 7
},
{
"value": 11.892,
"x": 5,
"y": 7
},
{
"value": 14.112,
"x": 6,
"y": 7
},
{
"value": 21.319,
"x": 7,
"y": 7
},
{
"value": 30.492,
"x": 8,
"y": 7
},
{
"value": 33.608,
"x": 9,
"y": 7
},
{
"value": 27.669,
"x": 10,
"y": 7
},
{
"value": 19.134,
"x": 11,
"y": 7
}
];
const options = {
"accessibility": {
"description": "Smooth peaks, a ridge, and a basin produce interpretable contour structure. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Contour chart: Smooth peaks, a ridge, and a basin produce interpretable contour structure"
},
"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": "value",
"type": "datum",
"value": 16.946
},
"text": "Point and range highlights · 0"
}
],
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2,
3
]
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2
]
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "value",
"type": "datum",
"value": 16.946
}
}
],
"interaction": {
"controls": {
"annotations": true,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "value",
"mode": "multiple",
"toggle": true
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour",
"trigger": "mark"
}
},
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "Value",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Smooth peaks, a ridge, and a basin produce interpretable contour structure",
"text": "Contour chart"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"type": "quantitative"
}
};
Graflume.contour('#chart', data, options);Portable schema
{
"accessibility": {
"description": "Smooth peaks, a ridge, and a basin produce interpretable contour structure. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Contour chart: Smooth peaks, a ridge, and a basin produce interpretable contour structure"
},
"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": "value",
"type": "datum",
"value": 16.946
},
"text": "Point and range highlights · 0"
}
],
"axes": {
"x": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2,
3
]
}
},
"y": {
"format": {
"fractionDigits": 1,
"type": "number"
},
"ticks": {
"values": [
0,
1,
2
]
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"field": "value",
"type": "datum",
"value": 16.946
}
}
],
"interaction": {
"controls": {
"annotations": true,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"key": "value",
"mode": "multiple",
"toggle": true
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "value",
"format": "number",
"label": "Value"
}
],
"title": "Contour",
"trigger": "mark"
}
},
"legend": {
"field": "value",
"interactive": false,
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "continuous",
"orientation": "horizontal",
"position": "bottom",
"title": "Value",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"value": "value"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "Smooth peaks, a ridge, and a basin produce interpretable contour structure",
"text": "Contour chart"
},
"width": "container",
"x": {
"field": "x",
"title": "Horizontal bin",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Vertical bin",
"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 · 1 compatibility identifiers
| ID | Name | Quick API | mode | mark | renderer |
|---|---|---|---|---|---|
contour | Contour chart | contour() | default | contour | canvas |
| Identifier | Canonical mode ID |
|---|---|
contour | contour |
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.