Graflume · Alpha

Motion · Basic implementation · Common features

Select a time frame to compare changing multivariate points. Start with only the required data and family encoding. Expand the code to run the same example. Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time.

Chart family · Default families

Motion

Select a time frame to compare changing multivariate points.

Quick API
motion()
Browser snapshot
graflume
mark
motion
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

Select a time frame to compare changing multivariate points.

StatusLoading

  • minimal-implementation
Graflume.motion() 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.motion()

const data = [
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "time": "2025",
    "x": 14,
    "y": 38,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "time": "2026",
    "x": 21,
    "y": 42,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "time": "2025",
    "x": 20,
    "y": 45,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "time": "2026",
    "x": 28,
    "y": 49,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "time": "2025",
    "x": 25,
    "y": 41,
    "z": 12
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "time": "2026",
    "x": 34,
    "y": 45,
    "z": 12
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "time": "2025",
    "x": 38,
    "y": 57,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "time": "2026",
    "x": 48,
    "y": 61,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "time": "2025",
    "x": 45,
    "y": 63,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "time": "2026",
    "x": 56,
    "y": 67,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "time": "2025",
    "x": 50,
    "y": 55,
    "z": 21
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "time": "2026",
    "x": 62,
    "y": 59,
    "z": 21
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "time": "2025",
    "x": 64,
    "y": 72,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "time": "2026",
    "x": 77,
    "y": 76,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "time": "2025",
    "x": 72,
    "y": 79,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "time": "2026",
    "x": 86,
    "y": 83,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "time": "2025",
    "x": 78,
    "y": 70,
    "z": 31
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "time": "2026",
    "x": 93,
    "y": 74,
    "z": 31
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "time": "2025",
    "x": 61,
    "y": 88,
    "z": 34
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "time": "2026",
    "x": 77,
    "y": 92,
    "z": 34
  }
];

const options = {
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size",
      "time": "time"
    },
    "options": {
      "frame": "2026"
    }
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size",
      "time": "time"
    },
    "options": {
      "frame": "2026"
    }
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "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.motion() 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.motion()

const data = [
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "time": "2025",
    "x": 14,
    "y": 38,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "time": "2026",
    "x": 21,
    "y": 42,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "time": "2025",
    "x": 20,
    "y": 45,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "time": "2026",
    "x": 28,
    "y": 49,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "time": "2025",
    "x": 25,
    "y": 41,
    "z": 12
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "time": "2026",
    "x": 34,
    "y": 45,
    "z": 12
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "time": "2025",
    "x": 38,
    "y": 57,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "time": "2026",
    "x": 48,
    "y": 61,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "time": "2025",
    "x": 45,
    "y": 63,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "time": "2026",
    "x": 56,
    "y": 67,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "time": "2025",
    "x": 50,
    "y": 55,
    "z": 21
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "time": "2026",
    "x": 62,
    "y": 59,
    "z": 21
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "time": "2025",
    "x": 64,
    "y": 72,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "time": "2026",
    "x": 77,
    "y": 76,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "time": "2025",
    "x": 72,
    "y": 79,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "time": "2026",
    "x": 86,
    "y": 83,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "time": "2025",
    "x": 78,
    "y": 70,
    "z": 31
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "time": "2026",
    "x": 93,
    "y": 74,
    "z": 31
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "time": "2025",
    "x": 61,
    "y": 88,
    "z": 34
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "time": "2026",
    "x": 77,
    "y": 92,
    "z": 34
  }
];

const options = {
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size",
      "time": "time"
    },
    "options": {
      "frame": "2026"
    }
  },
  "title": {
    "subtitle": "Motion chart uses runnable data and options to demonstrate stable keys; frame/cumulative/window playback.",
    "text": "Motion"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size",
      "time": "time"
    },
    "options": {
      "frame": "2026"
    }
  },
  "title": {
    "subtitle": "Motion chart uses runnable data and options to demonstrate stable keys; frame/cumulative/window playback.",
    "text": "Motion"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
}