Graflume · Alpha

Scatter matrix · Extreme-environment application

Compare every pair of quantitative dimensions as scatter cells with diagonal histograms. 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

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

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"
  }
}