Graflume · Alpha
Raster image · Extreme-environment application
Build an interactive raster from explicit cell coordinates and RGB values stored as rows. 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.
Chart family · Advanced families
Raster image
Build an interactive raster from explicit cell coordinates and RGB values stored as rows.
- Quick API
image()- Browser snapshot
graflume/complete- mark
image- Presets
- 1
Extreme environments
Reconfigure for display, input, and device capability
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.
Fluid responsive
Reflow axes, legends, descriptions, and controls from the available container size.
960×540 · adaptive.profiles=responsive-fluidzoom-reflowshape-rectangledisplay-colorinput-finemotion-fullrenderer-canvas-spatial
Mobile
Prioritize 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-spatial
Smartwatch
Keep 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-tiny
E-book and e-paper
Prefer 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-spatial
Monochrome
Use 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-spatial
Dot-matrix display
Reduce 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-tiny
400% zoom and reflow
Reflow 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-spatial
Foldable dual screen
Keep the chart and explanation in independent viewport segments without crossing the hinge.
720×640 · adaptive.profiles=foldable-dualfoldable-dualshape-dualdisplay-colorinput-finemotion-fullrenderer-canvas-spatial
TV and remote
Provide 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-spatial
Print and paged media
Pair 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-spatial
Forced colors
Honor 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-spatial
Reduced effects
Complete 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-spatial
Coarse touch
Inspect 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-spatial
Keyboard and switch input
Reach 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-spatial
Low resource and slow network
Prefer 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-spatial
RTL document
Follow 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-spatial
Vertical writing
Reflow 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-spatial
Ultrawide and projection
Cap 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-spatial
Screen reader and braille
Provide 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-spatial
No scripting
A 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-fallback
XR and see-through display
Fall 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-spatial
Cutout and round display
Inset 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-tiny
Virtual keyboard viewport
Reflow 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-spatial
Extreme environment preview
Choose 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-branching
- Legend:
legend · explicit · 3 channels - Point and range highlights:
highlights[] · datum · rowIndex - Custom callouts:
annotations[] · datum · rowIndex · callout · placement:auto - Interactive selection:
selection · multiple · toggle
Loading
Extreme environment preview · Row data
Row data and zero-copy TypedArray columns share one data contract.
xquantitative | yquantitative | redquantitative | greenquantitative | bluequantitative |
|---|---|---|---|---|
| 0 | 0 | 32 | 52 | 224 |
| 1 | 0 | 49 | 52 | 216 |
| 2 | 0 | 66 | 52 | 207 |
| 3 | 0 | 82 | 52 | 199 |
| 4 | 0 | 99 | 52 | 190 |
| 5 | 0 | 116 | 52 | 182 |
| 6 | 0 | 133 | 52 | 174 |
| 7 | 0 | 150 | 52 | 165 |
| 8 | 0 | 166 | 52 | 157 |
| 9 | 0 | 183 | 52 | 148 |
| 10 | 0 | 200 | 52 | 140 |
| 11 | 0 | 217 | 52 | 132 |
| 0 | 1 | 32 | 77 | 216 |
| 1 | 1 | 49 | 77 | 207 |
| 2 | 1 | 66 | 77 | 199 |
| 3 | 1 | 82 | 77 | 190 |
| 4 | 1 | 99 | 77 | 182 |
| 5 | 1 | 116 | 77 | 174 |
| 6 | 1 | 133 | 77 | 165 |
| 7 | 1 | 150 | 77 | 157 |
| 8 | 1 | 166 | 77 | 148 |
| 9 | 1 | 183 | 77 | 140 |
| 10 | 1 | 200 | 77 | 132 |
| 11 | 1 | 217 | 77 | 123 |
| 0 | 2 | 32 | 101 | 207 |
| 1 | 2 | 49 | 101 | 199 |
| 2 | 2 | 66 | 101 | 190 |
| 3 | 2 | 82 | 101 | 182 |
| 4 | 2 | 99 | 101 | 174 |
| 5 | 2 | 116 | 101 | 165 |
| 6 | 2 | 133 | 101 | 157 |
| 7 | 2 | 150 | 101 | 148 |
| 8 | 2 | 166 | 101 | 140 |
| 9 | 2 | 183 | 101 | 132 |
| 10 | 2 | 200 | 101 | 123 |
| 11 | 2 | 217 | 101 | 115 |
| 0 | 3 | 32 | 126 | 199 |
| 1 | 3 | 49 | 126 | 190 |
| 2 | 3 | 66 | 126 | 182 |
| 3 | 3 | 82 | 126 | 174 |
| 4 | 3 | 99 | 126 | 165 |
| 5 | 3 | 116 | 126 | 157 |
| 6 | 3 | 133 | 126 | 148 |
| 7 | 3 | 150 | 126 | 140 |
| 8 | 3 | 166 | 126 | 132 |
| 9 | 3 | 183 | 126 | 123 |
| 10 | 3 | 200 | 126 | 115 |
| 11 | 3 | 217 | 126 | 106 |
| 0 | 4 | 32 | 150 | 190 |
| 1 | 4 | 49 | 150 | 182 |
| 2 | 4 | 66 | 150 | 174 |
| 3 | 4 | 82 | 150 | 165 |
| 4 | 4 | 99 | 150 | 157 |
| 5 | 4 | 116 | 150 | 148 |
| 6 | 4 | 133 | 150 | 140 |
| 7 | 4 | 150 | 150 | 132 |
| 8 | 4 | 166 | 150 | 123 |
| 9 | 4 | 183 | 150 | 115 |
| 10 | 4 | 200 | 150 | 106 |
| 11 | 4 | 217 | 150 | 98 |
| 0 | 5 | 32 | 175 | 182 |
| 1 | 5 | 49 | 175 | 174 |
| 2 | 5 | 66 | 175 | 165 |
| 3 | 5 | 82 | 175 | 157 |
| 4 | 5 | 99 | 175 | 148 |
| 5 | 5 | 116 | 175 | 140 |
| 6 | 5 | 133 | 175 | 132 |
| 7 | 5 | 150 | 175 | 123 |
| 8 | 5 | 166 | 175 | 115 |
| 9 | 5 | 183 | 175 | 106 |
| 10 | 5 | 200 | 175 | 98 |
| 11 | 5 | 217 | 175 | 90 |
| 0 | 6 | 32 | 199 | 174 |
| 1 | 6 | 49 | 199 | 165 |
| 2 | 6 | 66 | 199 | 157 |
| 3 | 6 | 82 | 199 | 148 |
| 4 | 6 | 99 | 199 | 140 |
| 5 | 6 | 116 | 199 | 132 |
| 6 | 6 | 133 | 199 | 123 |
| 7 | 6 | 150 | 199 | 115 |
| 8 | 6 | 166 | 199 | 106 |
| 9 | 6 | 183 | 199 | 98 |
| 10 | 6 | 200 | 199 | 90 |
| 11 | 6 | 217 | 199 | 81 |
| 0 | 7 | 32 | 224 | 165 |
| 1 | 7 | 49 | 224 | 157 |
| 2 | 7 | 66 | 224 | 148 |
| 3 | 7 | 82 | 224 | 140 |
| 4 | 7 | 99 | 224 | 132 |
| 5 | 7 | 116 | 224 | 123 |
| 6 | 7 | 133 | 224 | 115 |
| 7 | 7 | 150 | 224 | 106 |
| 8 | 7 | 166 | 224 | 98 |
| 9 | 7 | 183 | 224 | 90 |
| 10 | 7 | 200 | 224 | 81 |
| 11 | 7 | 217 | 224 | 73 |
Browser API · Portable schema
Browser API
Graflume.image()
const data = [
{
"blue": 224,
"green": 52,
"red": 32,
"x": 0,
"y": 0
},
{
"blue": 216,
"green": 52,
"red": 49,
"x": 1,
"y": 0
},
{
"blue": 207,
"green": 52,
"red": 66,
"x": 2,
"y": 0
},
{
"blue": 199,
"green": 52,
"red": 82,
"x": 3,
"y": 0
},
{
"blue": 190,
"green": 52,
"red": 99,
"x": 4,
"y": 0
},
{
"blue": 182,
"green": 52,
"red": 116,
"x": 5,
"y": 0
},
{
"blue": 174,
"green": 52,
"red": 133,
"x": 6,
"y": 0
},
{
"blue": 165,
"green": 52,
"red": 150,
"x": 7,
"y": 0
},
{
"blue": 157,
"green": 52,
"red": 166,
"x": 8,
"y": 0
},
{
"blue": 148,
"green": 52,
"red": 183,
"x": 9,
"y": 0
},
{
"blue": 140,
"green": 52,
"red": 200,
"x": 10,
"y": 0
},
{
"blue": 132,
"green": 52,
"red": 217,
"x": 11,
"y": 0
},
{
"blue": 216,
"green": 77,
"red": 32,
"x": 0,
"y": 1
},
{
"blue": 207,
"green": 77,
"red": 49,
"x": 1,
"y": 1
},
{
"blue": 199,
"green": 77,
"red": 66,
"x": 2,
"y": 1
},
{
"blue": 190,
"green": 77,
"red": 82,
"x": 3,
"y": 1
},
{
"blue": 182,
"green": 77,
"red": 99,
"x": 4,
"y": 1
},
{
"blue": 174,
"green": 77,
"red": 116,
"x": 5,
"y": 1
},
{
"blue": 165,
"green": 77,
"red": 133,
"x": 6,
"y": 1
},
{
"blue": 157,
"green": 77,
"red": 150,
"x": 7,
"y": 1
},
{
"blue": 148,
"green": 77,
"red": 166,
"x": 8,
"y": 1
},
{
"blue": 140,
"green": 77,
"red": 183,
"x": 9,
"y": 1
},
{
"blue": 132,
"green": 77,
"red": 200,
"x": 10,
"y": 1
},
{
"blue": 123,
"green": 77,
"red": 217,
"x": 11,
"y": 1
},
{
"blue": 207,
"green": 101,
"red": 32,
"x": 0,
"y": 2
},
{
"blue": 199,
"green": 101,
"red": 49,
"x": 1,
"y": 2
},
{
"blue": 190,
"green": 101,
"red": 66,
"x": 2,
"y": 2
},
{
"blue": 182,
"green": 101,
"red": 82,
"x": 3,
"y": 2
},
{
"blue": 174,
"green": 101,
"red": 99,
"x": 4,
"y": 2
},
{
"blue": 165,
"green": 101,
"red": 116,
"x": 5,
"y": 2
},
{
"blue": 157,
"green": 101,
"red": 133,
"x": 6,
"y": 2
},
{
"blue": 148,
"green": 101,
"red": 150,
"x": 7,
"y": 2
},
{
"blue": 140,
"green": 101,
"red": 166,
"x": 8,
"y": 2
},
{
"blue": 132,
"green": 101,
"red": 183,
"x": 9,
"y": 2
},
{
"blue": 123,
"green": 101,
"red": 200,
"x": 10,
"y": 2
},
{
"blue": 115,
"green": 101,
"red": 217,
"x": 11,
"y": 2
},
{
"blue": 199,
"green": 126,
"red": 32,
"x": 0,
"y": 3
},
{
"blue": 190,
"green": 126,
"red": 49,
"x": 1,
"y": 3
},
{
"blue": 182,
"green": 126,
"red": 66,
"x": 2,
"y": 3
},
{
"blue": 174,
"green": 126,
"red": 82,
"x": 3,
"y": 3
},
{
"blue": 165,
"green": 126,
"red": 99,
"x": 4,
"y": 3
},
{
"blue": 157,
"green": 126,
"red": 116,
"x": 5,
"y": 3
},
{
"blue": 148,
"green": 126,
"red": 133,
"x": 6,
"y": 3
},
{
"blue": 140,
"green": 126,
"red": 150,
"x": 7,
"y": 3
},
{
"blue": 132,
"green": 126,
"red": 166,
"x": 8,
"y": 3
},
{
"blue": 123,
"green": 126,
"red": 183,
"x": 9,
"y": 3
},
{
"blue": 115,
"green": 126,
"red": 200,
"x": 10,
"y": 3
},
{
"blue": 106,
"green": 126,
"red": 217,
"x": 11,
"y": 3
},
{
"blue": 190,
"green": 150,
"red": 32,
"x": 0,
"y": 4
},
{
"blue": 182,
"green": 150,
"red": 49,
"x": 1,
"y": 4
},
{
"blue": 174,
"green": 150,
"red": 66,
"x": 2,
"y": 4
},
{
"blue": 165,
"green": 150,
"red": 82,
"x": 3,
"y": 4
},
{
"blue": 157,
"green": 150,
"red": 99,
"x": 4,
"y": 4
},
{
"blue": 148,
"green": 150,
"red": 116,
"x": 5,
"y": 4
},
{
"blue": 140,
"green": 150,
"red": 133,
"x": 6,
"y": 4
},
{
"blue": 132,
"green": 150,
"red": 150,
"x": 7,
"y": 4
},
{
"blue": 123,
"green": 150,
"red": 166,
"x": 8,
"y": 4
},
{
"blue": 115,
"green": 150,
"red": 183,
"x": 9,
"y": 4
},
{
"blue": 106,
"green": 150,
"red": 200,
"x": 10,
"y": 4
},
{
"blue": 98,
"green": 150,
"red": 217,
"x": 11,
"y": 4
},
{
"blue": 182,
"green": 175,
"red": 32,
"x": 0,
"y": 5
},
{
"blue": 174,
"green": 175,
"red": 49,
"x": 1,
"y": 5
},
{
"blue": 165,
"green": 175,
"red": 66,
"x": 2,
"y": 5
},
{
"blue": 157,
"green": 175,
"red": 82,
"x": 3,
"y": 5
},
{
"blue": 148,
"green": 175,
"red": 99,
"x": 4,
"y": 5
},
{
"blue": 140,
"green": 175,
"red": 116,
"x": 5,
"y": 5
},
{
"blue": 132,
"green": 175,
"red": 133,
"x": 6,
"y": 5
},
{
"blue": 123,
"green": 175,
"red": 150,
"x": 7,
"y": 5
},
{
"blue": 115,
"green": 175,
"red": 166,
"x": 8,
"y": 5
},
{
"blue": 106,
"green": 175,
"red": 183,
"x": 9,
"y": 5
},
{
"blue": 98,
"green": 175,
"red": 200,
"x": 10,
"y": 5
},
{
"blue": 90,
"green": 175,
"red": 217,
"x": 11,
"y": 5
},
{
"blue": 174,
"green": 199,
"red": 32,
"x": 0,
"y": 6
},
{
"blue": 165,
"green": 199,
"red": 49,
"x": 1,
"y": 6
},
{
"blue": 157,
"green": 199,
"red": 66,
"x": 2,
"y": 6
},
{
"blue": 148,
"green": 199,
"red": 82,
"x": 3,
"y": 6
},
{
"blue": 140,
"green": 199,
"red": 99,
"x": 4,
"y": 6
},
{
"blue": 132,
"green": 199,
"red": 116,
"x": 5,
"y": 6
},
{
"blue": 123,
"green": 199,
"red": 133,
"x": 6,
"y": 6
},
{
"blue": 115,
"green": 199,
"red": 150,
"x": 7,
"y": 6
},
{
"blue": 106,
"green": 199,
"red": 166,
"x": 8,
"y": 6
},
{
"blue": 98,
"green": 199,
"red": 183,
"x": 9,
"y": 6
},
{
"blue": 90,
"green": 199,
"red": 200,
"x": 10,
"y": 6
},
{
"blue": 81,
"green": 199,
"red": 217,
"x": 11,
"y": 6
},
{
"blue": 165,
"green": 224,
"red": 32,
"x": 0,
"y": 7
},
{
"blue": 157,
"green": 224,
"red": 49,
"x": 1,
"y": 7
},
{
"blue": 148,
"green": 224,
"red": 66,
"x": 2,
"y": 7
},
{
"blue": 140,
"green": 224,
"red": 82,
"x": 3,
"y": 7
},
{
"blue": 132,
"green": 224,
"red": 99,
"x": 4,
"y": 7
},
{
"blue": 123,
"green": 224,
"red": 116,
"x": 5,
"y": 7
},
{
"blue": 115,
"green": 224,
"red": 133,
"x": 6,
"y": 7
},
{
"blue": 106,
"green": 224,
"red": 150,
"x": 7,
"y": 7
},
{
"blue": 98,
"green": 224,
"red": 166,
"x": 8,
"y": 7
},
{
"blue": 90,
"green": 224,
"red": 183,
"x": 9,
"y": 7
},
{
"blue": 81,
"green": 224,
"red": 200,
"x": 10,
"y": 7
},
{
"blue": 73,
"green": 224,
"red": 217,
"x": 11,
"y": 7
}
];
const options = {
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image: A smooth calibration raster demonstrates color and pixel inspection"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"rowIndex": 48,
"type": "datum"
},
"text": "Point and range highlights · 0"
}
],
"axes": {
"x": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
},
"y": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"rowIndex": 48,
"type": "datum"
}
}
],
"interaction": {
"controls": {
"annotations": true,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"mode": "multiple",
"toggle": true
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "A smooth calibration raster demonstrates color and pixel inspection",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
};
Graflume.image('#chart', data, options);Portable schema
ChartSpec 0.1 · options
{
"accessibility": {
"description": "A smooth calibration raster demonstrates color and pixel inspection. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
"label": "Raster image: A smooth calibration raster demonstrates color and pixel inspection"
},
"annotations": [
{
"connector": {
"visible": true
},
"detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
"id": "manual-callout",
"placement": "auto",
"style": {
"maxWidth": 220,
"padding": 8
},
"target": {
"rowIndex": 48,
"type": "datum"
},
"text": "Point and range highlights · 0"
}
],
"axes": {
"x": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
},
"y": {
"format": {
"type": "integer"
},
"labels": {
"orientation": "horizontal"
},
"ticks": {
"spacing": 8
}
}
},
"create": {
"adaptive": {
"profiles": "auto"
}
},
"height": 620,
"highlights": [
{
"id": "manual-focus",
"padding": 7,
"target": {
"rowIndex": 48,
"type": "datum"
}
}
],
"interaction": {
"controls": {
"annotations": true,
"export": true,
"fullscreen": true,
"labels": {
"controls": "Chart controls",
"enterFullscreen": "Enter fullscreen",
"exitFullscreen": "Exit fullscreen",
"exportPng": "Download PNG",
"hideAnnotations": "Hide callouts",
"loop": "Loop playback",
"nextFrame": "Next frame",
"pause": "Pause",
"play": "Play",
"previousFrame": "Previous frame",
"reset": "Reset view",
"seek": "Playback position",
"showAnnotations": "Show callouts",
"speed": "Playback speed",
"zoomIn": "Zoom in",
"zoomOut": "Zoom out"
},
"playback": false,
"reset": true,
"zoom": true
},
"hover": true,
"navigation": {
"drag": true,
"keyboard": true,
"maxZoom": 6,
"minZoom": 1,
"pinch": true,
"wheel": "modifier"
},
"selection": {
"ariaLabel": "Interactive selection",
"clearOnBackground": true,
"clearOnEscape": true,
"highlight": {
"padding": 5
},
"mode": "multiple",
"toggle": true
},
"tooltip": {
"fields": [
{
"field": "x",
"format": "number",
"label": "X"
},
{
"field": "y",
"format": "number",
"label": "Y"
},
{
"field": "red",
"format": "number",
"label": "Red"
},
{
"field": "green",
"format": "number",
"label": "Green"
},
{
"field": "blue",
"format": "number",
"label": "Blue"
}
],
"title": "Raster image",
"trigger": "mark"
}
},
"legend": {
"interactive": false,
"items": [
{
"id": "semantic-0",
"label": "Red"
},
{
"id": "semantic-1",
"label": "Green"
},
{
"id": "semantic-2",
"label": "Blue"
}
],
"labels": {
"hide": "Hide",
"show": "Show"
},
"maxItems": 8,
"mode": "layers",
"orientation": "horizontal",
"position": "bottom",
"title": "Raster image",
"visible": true
},
"locale": "en",
"mark": {
"fields": {
"blue": "blue",
"green": "green",
"red": "red"
}
},
"padding": {
"top": 52
},
"theme": "graflume-light",
"title": {
"subtitle": "A smooth calibration raster demonstrates color and pixel inspection",
"text": "Raster image"
},
"width": "container",
"x": {
"field": "x",
"title": "Column",
"type": "quantitative"
},
"y": {
"field": "y",
"title": "Row",
"type": "quantitative"
}
}