Opus Motion ★ Star on GitHub

Data · bubble-scatter-grow

Bubble scatter grow

A bubble chart: axes and grid fade in, then bubbles grow in from left to right at their x / y position with area proportional to size, coloured per group, with collision-aware labels and an optional highlighted bubble with a ring.

A free, MIT-licensed animated chart from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Bubble scatter grow: three frames of the animated chart, start, middle and end
Bubble scatter grow — start, middle and end of the 6.0-second motion.

What Bubble scatter grow is for

Three-variable comparisons: markets by size, growth and margin, countries, products, campaigns, startups. Pass points as [{label, x, y, size, group?, color?}], axis titles and number formats; works on a transparent background.

  • bubble
  • scatter
  • chart
  • axes
  • grow
  • comparison
  • infographic
  • data
  • overlay
  • statistics
  • market
  • plot

Details

Category
Animated charts & data visualisation
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title subtitle xLabel yLabel
Colour props
colors background ink
Mood
hud
Roles
accent, subject

Use Bubble scatter grow in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add bubble-scatter-grow --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render bubble-scatter-grow --props '{"title":"Reach vs engagement","subtitle":"Bubble area shows audience size","xLabel":"Reach (thousands)","yLabel":"Engagement","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export bubble-scatter-grow --as webm-alpha --props '{"title":"Reach vs engagement","subtitle":"Bubble area shows audience size","xLabel":"Reach (thousands)","yLabel":"Engagement","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="bubble-scatter-grow"
  props={{
    title: 'Reach vs engagement',
    subtitle: 'Bubble area shows audience size',
    xLabel: 'Reach (thousands)',
    yLabel: 'Engagement',
    colors: [
      '#2F6FED',
      '#FF7A45',
      '#16B39A',
      '#F2B134',
      '#8E5CF0',
      '#E5487F',
      '#5BC0EB',
      '#7A8794',
    ],
    background: '#F5F3EE',
    ink: '#18212B',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="bubble-scatter-grow"
  props='{"title":"Reach vs engagement","subtitle":"Bubble area shows audience size","xLabel":"Reach (thousands)","yLabel":"Engagement","colors":["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"],"background":"#F5F3EE","ink":"#18212B"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "bubble-scatter-grow",
      "props": {
        "title": "Reach vs engagement",
        "subtitle": "Bubble area shows audience size",
        "xLabel": "Reach (thousands)",
        "yLabel": "Engagement",
        "colors": [
          "#2F6FED",
          "#FF7A45",
          "#16B39A",
          "#F2B134",
          "#8E5CF0",
          "#E5487F",
          "#5BC0EB",
          "#7A8794"
        ],
        "background": "#F5F3EE",
        "ink": "#18212B"
      }
    }
  ]
}

Bubble scatter grow props

24 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
points[{"label":"Alpha","x":12,"y":78,"size":40,"group":"North"},{"label":"Bravo","x":28,"y":…bubbles [{label, x, y, size, group?, color?}]; group sets the colour and builds the legend
title"Reach vs engagement"headline (empty = none)
subtitle"Bubble area shows audience size"small line under the headline (empty = none)
xLabel"Reach (thousands)"x-axis title (empty = none)
yLabel"Engagement"y-axis title (empty = none)
sizeLabel"Bubble size = audience"small note about what the bubble size means (empty = none)
xPrefix""text before x-axis numbers
xSuffix""text after x-axis numbers
yPrefix""text before y-axis numbers
ySuffix"%"text after y-axis numbers, e.g. "%"
xDecimals0decimals on x-axis numbers
yDecimals0decimals on y-axis numbers
zeroBasedtruestart both axes at zero (false zooms to the data range)
showLabelstrueprint bubble labels (inside when they fit, else beside, skipping collisions)
labelTop0only label the N largest bubbles (0 = all that fit)
maxRadius96radius of the largest bubble in u (capped to the plot size)
bubbleOpacity0.72fill opacity of bubbles 0-1
highlight""label of a bubble to ring and spotlight at the end (empty = none)
colors["#2F6FED","#FF7A45","#16B39A","#F2B134","#8E5CF0","#E5487F","#5BC0EB","#7A8794"]palette for groups / bubbles without their own colour
background"#F5F3EE"page colour, or "transparent" to sit over other content
ink"#18212B"text and grid colour
fontFamily""CSS font family (empty = Space Grotesk)
startAt10frame the axes start to appear
speed1animation speed multiplier

Notes & credits

Technique sources:

  • original round-3 chart motion