Opus Motion ★ Star on GitHub

Data · chip-stack-bars

Chip stack bars

Horizontal bars built from labelled unit chips, one chip per item: each row has a tiny tracked label above and a rolling count at the end, rows grow left to right chip by chip (about one chip per frame), and the highlighted row uses the accent colour with a gentle wave once complete.

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

Chip stack bars: three frames of the animated chart, start, middle and end
Chip stack bars — start, middle and end of the 6.0-second motion.

What Chip stack bars is for

A unit-chart (isotype) alternative to bar charts for counts of things that have names: parts per system, features per tier, ingredients per category.

  • unit chart
  • isotype
  • bars
  • chips
  • count
  • data
  • chart
  • stack
  • tiles
  • categories
  • infographic

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
no
Seamless loop
no
Text props
title subtitle
Colour props
background chipColor accentColor
Mood
hud
Roles
subject

Use Chip stack bars in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add chip-stack-bars --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render chip-stack-bars --props '{"title":"What goes inside","subtitle":"ONE CHIP PER ITEM","background":"#EEF1F4","chipColor":"#25313D","accentColor":"#FF5A36"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export chip-stack-bars --as mp4 --props '{"title":"What goes inside","subtitle":"ONE CHIP PER ITEM","background":"#EEF1F4","chipColor":"#25313D","accentColor":"#FF5A36"}'

React / Next.js

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

<MotionPlayer
  motion="chip-stack-bars"
  props={{
    title: 'What goes inside',
    subtitle: 'ONE CHIP PER ITEM',
    background: '#EEF1F4',
    chipColor: '#25313D',
    accentColor: '#FF5A36',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="chip-stack-bars"
  props='{"title":"What goes inside","subtitle":"ONE CHIP PER ITEM","background":"#EEF1F4","chipColor":"#25313D","accentColor":"#FF5A36"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "chip-stack-bars",
      "props": {
        "title": "What goes inside",
        "subtitle": "ONE CHIP PER ITEM",
        "background": "#EEF1F4",
        "chipColor": "#25313D",
        "accentColor": "#FF5A36"
      }
    }
  ]
}

Chip stack bars props

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

PropDefaultWhat it does
rows[{"label":"STRUCTURE","items":["Al","Fe","Ti","Mg","Cu","Zn","Ni","Cr","Mn","Sn","Pb","…rows[{label, items: string[] (chip texts), accent?: true}]
title"What goes inside"headline
subtitle"ONE CHIP PER ITEM"small tracked line under the headline
background"#EEF1F4"page colour
chipColor"#25313D"chip colour
accentColor"#FF5A36"accent row colour
startAt16frame the first row starts
rowGap12frames between row starts
chipFrames1.2frames per chip (1 = one chip per frame)

Notes & credits

Technique sources:

  • mg-styles-15 demos/19-paperclip/index.html CATS / chart section (MIT)