Graflume · Alpha

Scatter matrix

Compare every pair of quantitative dimensions as scatter cells with diagonal histograms.

Chart family · Advanced families

Scatter matrix

Compare every pair of quantitative dimensions as scatter cells with diagonal histograms.

Quick API
scatterMatrix()
Browser snapshot
graflume/complete
mark
scatter-matrix
Presets
1

Basic implementation

The smallest runnable chart

Start with only the required data and family encoding. Expand the code to run the same example.

Basic example

Compare every pair of quantitative dimensions as scatter cells with diagonal histograms.

StatusLoading

  • minimal-implementation
Graflume.scatterMatrix() Canvas 2D
Control help

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.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.scatterMatrix()

const data = [
  {
    "cost": 82,
    "name": "Aurora · Seoul",
    "quality": 75,
    "region": "Seoul",
    "speed": 61,
    "train": "Aurora"
  },
  {
    "cost": 82.79,
    "name": "Aurora · Paris",
    "quality": 75.07,
    "region": "Paris",
    "speed": 67.65,
    "train": "Aurora"
  },
  {
    "cost": 83.22,
    "name": "Aurora · Austin",
    "quality": 73.38,
    "region": "Austin",
    "speed": 71.88,
    "train": "Aurora"
  },
  {
    "cost": 83.01,
    "name": "Beacon · Seoul",
    "quality": 70.75,
    "region": "Seoul",
    "speed": 72.41,
    "train": "Beacon"
  },
  {
    "cost": 81.97,
    "name": "Beacon · Paris",
    "quality": 68.28,
    "region": "Paris",
    "speed": 69.68,
    "train": "Beacon"
  },
  {
    "cost": 80.07,
    "name": "Beacon · Austin",
    "quality": 67.03,
    "region": "Austin",
    "speed": 65.69,
    "train": "Beacon"
  },
  {
    "cost": 77.41,
    "name": "Cinder · Seoul",
    "quality": 67.69,
    "region": "Seoul",
    "speed": 63.03,
    "train": "Cinder"
  },
  {
    "cost": 74.25,
    "name": "Cinder · Paris",
    "quality": 70.38,
    "region": "Paris",
    "speed": 63.64,
    "train": "Cinder"
  },
  {
    "cost": 70.92,
    "name": "Cinder · Austin",
    "quality": 74.65,
    "region": "Austin",
    "speed": 67.95,
    "train": "Cinder"
  },
  {
    "cost": 67.77,
    "name": "Delta · Seoul",
    "quality": 79.55,
    "region": "Seoul",
    "speed": 74.63,
    "train": "Delta"
  },
  {
    "cost": 65.14,
    "name": "Delta · Paris",
    "quality": 83.96,
    "region": "Paris",
    "speed": 81.26,
    "train": "Delta"
  },
  {
    "cost": 63.27,
    "name": "Delta · Austin",
    "quality": 86.91,
    "region": "Austin",
    "speed": 85.41,
    "train": "Delta"
  },
  {
    "cost": 62.27,
    "name": "Ember · Seoul",
    "quality": 87.85,
    "region": "Seoul",
    "speed": 85.84,
    "train": "Ember"
  },
  {
    "cost": 62.08,
    "name": "Ember · Paris",
    "quality": 86.83,
    "region": "Paris",
    "speed": 83.05,
    "train": "Ember"
  },
  {
    "cost": 62.54,
    "name": "Ember · Austin",
    "quality": 84.47,
    "region": "Austin",
    "speed": 79.07,
    "train": "Ember"
  },
  {
    "cost": 63.33,
    "name": "Fjord · Seoul",
    "quality": 81.8,
    "region": "Seoul",
    "speed": 76.46,
    "train": "Fjord"
  },
  {
    "cost": 64.12,
    "name": "Fjord · Paris",
    "quality": 79.92,
    "region": "Paris",
    "speed": 77.17,
    "train": "Fjord"
  },
  {
    "cost": 64.53,
    "name": "Fjord · Austin",
    "quality": 79.72,
    "region": "Austin",
    "speed": 81.55,
    "train": "Fjord"
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
};

Graflume.scatterMatrix('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
}

Common features

Features shared by every chart

Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time. Hover over a data mark. On supported charts, move the pointer along the axis to see the nearest value. All exact values are available in the table below.

Header

Add a chart title and supporting description inside the visualization.

StatusLoading

  • header
Graflume.scatterMatrix() Canvas 2D
Control help

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.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.scatterMatrix()

const data = [
  {
    "cost": 82,
    "name": "Aurora · Seoul",
    "quality": 75,
    "region": "Seoul",
    "speed": 61,
    "train": "Aurora"
  },
  {
    "cost": 82.79,
    "name": "Aurora · Paris",
    "quality": 75.07,
    "region": "Paris",
    "speed": 67.65,
    "train": "Aurora"
  },
  {
    "cost": 83.22,
    "name": "Aurora · Austin",
    "quality": 73.38,
    "region": "Austin",
    "speed": 71.88,
    "train": "Aurora"
  },
  {
    "cost": 83.01,
    "name": "Beacon · Seoul",
    "quality": 70.75,
    "region": "Seoul",
    "speed": 72.41,
    "train": "Beacon"
  },
  {
    "cost": 81.97,
    "name": "Beacon · Paris",
    "quality": 68.28,
    "region": "Paris",
    "speed": 69.68,
    "train": "Beacon"
  },
  {
    "cost": 80.07,
    "name": "Beacon · Austin",
    "quality": 67.03,
    "region": "Austin",
    "speed": 65.69,
    "train": "Beacon"
  },
  {
    "cost": 77.41,
    "name": "Cinder · Seoul",
    "quality": 67.69,
    "region": "Seoul",
    "speed": 63.03,
    "train": "Cinder"
  },
  {
    "cost": 74.25,
    "name": "Cinder · Paris",
    "quality": 70.38,
    "region": "Paris",
    "speed": 63.64,
    "train": "Cinder"
  },
  {
    "cost": 70.92,
    "name": "Cinder · Austin",
    "quality": 74.65,
    "region": "Austin",
    "speed": 67.95,
    "train": "Cinder"
  },
  {
    "cost": 67.77,
    "name": "Delta · Seoul",
    "quality": 79.55,
    "region": "Seoul",
    "speed": 74.63,
    "train": "Delta"
  },
  {
    "cost": 65.14,
    "name": "Delta · Paris",
    "quality": 83.96,
    "region": "Paris",
    "speed": 81.26,
    "train": "Delta"
  },
  {
    "cost": 63.27,
    "name": "Delta · Austin",
    "quality": 86.91,
    "region": "Austin",
    "speed": 85.41,
    "train": "Delta"
  },
  {
    "cost": 62.27,
    "name": "Ember · Seoul",
    "quality": 87.85,
    "region": "Seoul",
    "speed": 85.84,
    "train": "Ember"
  },
  {
    "cost": 62.08,
    "name": "Ember · Paris",
    "quality": 86.83,
    "region": "Paris",
    "speed": 83.05,
    "train": "Ember"
  },
  {
    "cost": 62.54,
    "name": "Ember · Austin",
    "quality": 84.47,
    "region": "Austin",
    "speed": 79.07,
    "train": "Ember"
  },
  {
    "cost": 63.33,
    "name": "Fjord · Seoul",
    "quality": 81.8,
    "region": "Seoul",
    "speed": 76.46,
    "train": "Fjord"
  },
  {
    "cost": 64.12,
    "name": "Fjord · Paris",
    "quality": 79.92,
    "region": "Paris",
    "speed": 77.17,
    "train": "Fjord"
  },
  {
    "cost": 64.53,
    "name": "Fjord · Austin",
    "quality": 79.72,
    "region": "Austin",
    "speed": 81.55,
    "train": "Fjord"
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "title": {
    "subtitle": "Scatter matrix uses runnable data and options to demonstrate up to eight dimensions; explicit dimension order.",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
};

Graflume.scatterMatrix('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "title": {
    "subtitle": "Scatter matrix uses runnable data and options to demonstrate up to eight dimensions; explicit dimension order.",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
}

Chart-specific features

Every executable mode in this family

These tabs come from Graflume's public catalog. Every mode owns runnable data, options, a Quick API, and source-backed feature claims.

Scatter matrix

Scatter matrix uses runnable data and options to demonstrate up to eight dimensions; explicit dimension order.

StatusLoading

  • scatter-matrix
  • up to eight dimensions
  • explicit dimension order
  • diagonal histogram
  • off-diagonal scatter
  • shared category color
  • selectable diagonal KDE/ECDF
  • upper/lower mark selection
  • linked brush
Graflume.scatterMatrix() Canvas 2D
Control help

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.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.scatterMatrix()

const data = [
  {
    "cost": 82,
    "name": "Aurora · Seoul",
    "quality": 75,
    "region": "Seoul",
    "speed": 61,
    "train": "Aurora"
  },
  {
    "cost": 82.79,
    "name": "Aurora · Paris",
    "quality": 75.07,
    "region": "Paris",
    "speed": 67.65,
    "train": "Aurora"
  },
  {
    "cost": 83.22,
    "name": "Aurora · Austin",
    "quality": 73.38,
    "region": "Austin",
    "speed": 71.88,
    "train": "Aurora"
  },
  {
    "cost": 83.01,
    "name": "Beacon · Seoul",
    "quality": 70.75,
    "region": "Seoul",
    "speed": 72.41,
    "train": "Beacon"
  },
  {
    "cost": 81.97,
    "name": "Beacon · Paris",
    "quality": 68.28,
    "region": "Paris",
    "speed": 69.68,
    "train": "Beacon"
  },
  {
    "cost": 80.07,
    "name": "Beacon · Austin",
    "quality": 67.03,
    "region": "Austin",
    "speed": 65.69,
    "train": "Beacon"
  },
  {
    "cost": 77.41,
    "name": "Cinder · Seoul",
    "quality": 67.69,
    "region": "Seoul",
    "speed": 63.03,
    "train": "Cinder"
  },
  {
    "cost": 74.25,
    "name": "Cinder · Paris",
    "quality": 70.38,
    "region": "Paris",
    "speed": 63.64,
    "train": "Cinder"
  },
  {
    "cost": 70.92,
    "name": "Cinder · Austin",
    "quality": 74.65,
    "region": "Austin",
    "speed": 67.95,
    "train": "Cinder"
  },
  {
    "cost": 67.77,
    "name": "Delta · Seoul",
    "quality": 79.55,
    "region": "Seoul",
    "speed": 74.63,
    "train": "Delta"
  },
  {
    "cost": 65.14,
    "name": "Delta · Paris",
    "quality": 83.96,
    "region": "Paris",
    "speed": 81.26,
    "train": "Delta"
  },
  {
    "cost": 63.27,
    "name": "Delta · Austin",
    "quality": 86.91,
    "region": "Austin",
    "speed": 85.41,
    "train": "Delta"
  },
  {
    "cost": 62.27,
    "name": "Ember · Seoul",
    "quality": 87.85,
    "region": "Seoul",
    "speed": 85.84,
    "train": "Ember"
  },
  {
    "cost": 62.08,
    "name": "Ember · Paris",
    "quality": 86.83,
    "region": "Paris",
    "speed": 83.05,
    "train": "Ember"
  },
  {
    "cost": 62.54,
    "name": "Ember · Austin",
    "quality": 84.47,
    "region": "Austin",
    "speed": 79.07,
    "train": "Ember"
  },
  {
    "cost": 63.33,
    "name": "Fjord · Seoul",
    "quality": 81.8,
    "region": "Seoul",
    "speed": 76.46,
    "train": "Fjord"
  },
  {
    "cost": 64.12,
    "name": "Fjord · Paris",
    "quality": 79.92,
    "region": "Paris",
    "speed": 77.17,
    "train": "Fjord"
  },
  {
    "cost": 64.53,
    "name": "Fjord · Austin",
    "quality": 79.72,
    "region": "Austin",
    "speed": 81.55,
    "train": "Fjord"
  }
];

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": "Scatter matrix example"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "interaction": {
    "controls": {
      "annotations": false,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "tooltip": {
      "fields": [
        {
          "field": "speed",
          "format": "number",
          "label": "Speed"
        },
        {
          "field": "quality",
          "format": "number",
          "label": "Quality"
        },
        {
          "field": "cost",
          "format": "number",
          "label": "Cost"
        }
      ],
      "title": "Scatter matrix",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Scatter matrix uses runnable data and options to demonstrate up to eight dimensions; explicit dimension order.",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
};

Graflume.scatterMatrix('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
    "label": "Scatter matrix example"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "interaction": {
    "controls": {
      "annotations": false,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "tooltip": {
      "fields": [
        {
          "field": "speed",
          "format": "number",
          "label": "Speed"
        },
        {
          "field": "quality",
          "format": "number",
          "label": "Quality"
        },
        {
          "field": "cost",
          "format": "number",
          "label": "Cost"
        }
      ],
      "title": "Scatter matrix",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Scatter matrix uses runnable data and options to demonstrate up to eight dimensions; explicit dimension order.",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
}

Edge cases

Numeric range, irregular structure, and data volume

Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.

Wide numeric range

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-range
  • extreme-small
  • extreme-large
  • zero
  • mixed-sign
  • budget:marks<=6
Graflume.scatterMatrix() Canvas 2D
Control help

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.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.scatterMatrix()

const data = [
  {
    "cost": 0,
    "quality": -1e-9,
    "speed": -1000000000000
  },
  {
    "cost": 1000000000000,
    "quality": 0,
    "speed": -1e-9
  },
  {
    "cost": 1e-9,
    "quality": 1000000000000,
    "speed": 0
  },
  {
    "cost": 1000000,
    "quality": 1e-9,
    "speed": 1000000000000
  },
  {
    "cost": -1000000000000,
    "quality": 1000000,
    "speed": 1e-9
  },
  {
    "cost": -1e-9,
    "quality": -1000000000000,
    "speed": 1000000
  }
];

const options = {
  "accessibility": {
    "description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Scatter matrix"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
};

Graflume.scatterMatrix('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Scatter matrix"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
}

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-fluid
  • zoom-reflow
  • shape-rectangle
  • display-color
  • input-fine
  • motion-full
  • renderer-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

  • adaptive
  • capability-driven
  • no-user-agent-branching
  • Legend: legend · categories · name
  • Point and range highlights: highlights[] · datum · speed
  • Custom callouts: annotations[] · datum · speed · callout · placement:auto
  • Interactive selection: selection · multiple · toggle
Graflume.scatterMatrix() Canvas 2D
Control help

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.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.scatterMatrix()

const data = [
  {
    "cost": 82,
    "name": "Aurora · Seoul",
    "quality": 75,
    "region": "Seoul",
    "speed": 61,
    "train": "Aurora"
  },
  {
    "cost": 82.79,
    "name": "Aurora · Paris",
    "quality": 75.07,
    "region": "Paris",
    "speed": 67.65,
    "train": "Aurora"
  },
  {
    "cost": 83.22,
    "name": "Aurora · Austin",
    "quality": 73.38,
    "region": "Austin",
    "speed": 71.88,
    "train": "Aurora"
  },
  {
    "cost": 83.01,
    "name": "Beacon · Seoul",
    "quality": 70.75,
    "region": "Seoul",
    "speed": 72.41,
    "train": "Beacon"
  },
  {
    "cost": 81.97,
    "name": "Beacon · Paris",
    "quality": 68.28,
    "region": "Paris",
    "speed": 69.68,
    "train": "Beacon"
  },
  {
    "cost": 80.07,
    "name": "Beacon · Austin",
    "quality": 67.03,
    "region": "Austin",
    "speed": 65.69,
    "train": "Beacon"
  },
  {
    "cost": 77.41,
    "name": "Cinder · Seoul",
    "quality": 67.69,
    "region": "Seoul",
    "speed": 63.03,
    "train": "Cinder"
  },
  {
    "cost": 74.25,
    "name": "Cinder · Paris",
    "quality": 70.38,
    "region": "Paris",
    "speed": 63.64,
    "train": "Cinder"
  },
  {
    "cost": 70.92,
    "name": "Cinder · Austin",
    "quality": 74.65,
    "region": "Austin",
    "speed": 67.95,
    "train": "Cinder"
  },
  {
    "cost": 67.77,
    "name": "Delta · Seoul",
    "quality": 79.55,
    "region": "Seoul",
    "speed": 74.63,
    "train": "Delta"
  },
  {
    "cost": 65.14,
    "name": "Delta · Paris",
    "quality": 83.96,
    "region": "Paris",
    "speed": 81.26,
    "train": "Delta"
  },
  {
    "cost": 63.27,
    "name": "Delta · Austin",
    "quality": 86.91,
    "region": "Austin",
    "speed": 85.41,
    "train": "Delta"
  },
  {
    "cost": 62.27,
    "name": "Ember · Seoul",
    "quality": 87.85,
    "region": "Seoul",
    "speed": 85.84,
    "train": "Ember"
  },
  {
    "cost": 62.08,
    "name": "Ember · Paris",
    "quality": 86.83,
    "region": "Paris",
    "speed": 83.05,
    "train": "Ember"
  },
  {
    "cost": 62.54,
    "name": "Ember · Austin",
    "quality": 84.47,
    "region": "Austin",
    "speed": 79.07,
    "train": "Ember"
  },
  {
    "cost": 63.33,
    "name": "Fjord · Seoul",
    "quality": 81.8,
    "region": "Seoul",
    "speed": 76.46,
    "train": "Fjord"
  },
  {
    "cost": 64.12,
    "name": "Fjord · Paris",
    "quality": 79.92,
    "region": "Paris",
    "speed": 77.17,
    "train": "Fjord"
  },
  {
    "cost": 64.53,
    "name": "Fjord · Austin",
    "quality": 79.72,
    "region": "Austin",
    "speed": 81.55,
    "train": "Fjord"
  }
];

const options = {
  "accessibility": {
    "description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Scatter matrix: Named release candidates expose correlations among speed, quality, and cost"
  },
  "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": "speed",
        "type": "datum",
        "value": 74.63
      },
      "text": "Point and range highlights · 74.63"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "speed",
        "type": "datum",
        "value": 74.63
      }
    }
  ],
  "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": "speed",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "speed",
          "format": "number",
          "label": "Speed"
        },
        {
          "field": "quality",
          "format": "number",
          "label": "Quality"
        },
        {
          "field": "cost",
          "format": "number",
          "label": "Cost"
        }
      ],
      "title": "Scatter matrix",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "name",
    "interactive": true,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "categories",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Name",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Named release candidates expose correlations among speed, quality, and cost",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
};

Graflume.scatterMatrix('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Named release candidates expose correlations among speed, quality, and cost. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Scatter matrix: Named release candidates expose correlations among speed, quality, and cost"
  },
  "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": "speed",
        "type": "datum",
        "value": 74.63
      },
      "text": "Point and range highlights · 74.63"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "speed",
        "type": "datum",
        "value": 74.63
      }
    }
  ],
  "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": "speed",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "speed",
          "format": "number",
          "label": "Speed"
        },
        {
          "field": "quality",
          "format": "number",
          "label": "Quality"
        },
        {
          "field": "cost",
          "format": "number",
          "label": "Cost"
        }
      ],
      "title": "Scatter matrix",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "name",
    "interactive": true,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "categories",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Name",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "options": {
      "dimensions": [
        "speed",
        "quality",
        "cost"
      ]
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Named release candidates expose correlations among speed, quality, and cost",
    "text": "Scatter matrix"
  },
  "width": "container",
  "x": {
    "field": "speed",
    "title": "Release metric",
    "type": "quantitative"
  },
  "y": {
    "field": "quality",
    "title": "Release metric",
    "type": "quantitative"
  }
}

Catalog

Modes · compatibility identifiers

The source-controlled catalog maps callable modes in this family and compatibility identifiers to their canonical modes. This table contains executable entries only.

1 modes · 0 compatibility identifiers

Scatter matrix · supported modes · representative scatter-matrix
IDNameQuick APImodemarkrenderer
scatter-matrixScatter matrixscatterMatrix()defaultscatter-matrixcanvas

Manual

Integration checklist

ARIA · table fallback

Accessibility

Canvas ARIA metadata is paired with a text summary and table fallback.

standard · large · ultra

Performance

Standard, large, and ultra profiles bound rendering work.