Opus Motion ★ Star on GitHub

Data · live-chart

Live chart / ECG traces

Line charts that draw live with a glowing head dot: growth curve + synapse curve + scrolling ECG ('trace'), two heartbeats drifting into sync ('sync'), or a quality line turning red and falling while a gauge needle swings down ('decline').

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

Live chart / ECG traces: three frames of the animated chart, start, middle and end
Live chart / ECG traces — start, middle and end of the 7.0-second motion.

What Live chart / ECG traces is for

Growth / vital-sign / metric beats, "in sync" relationship moments, "it got worse" data moments.

  • chart
  • ecg
  • heartbeat
  • line
  • data
  • gauge
  • hud
  • threshold
  • break
  • oscilloscope
  • scope
  • crt
  • news
  • stock
  • limit

Details

Category
Animated charts & data visualisation
Length
7.0 s (210 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title xLabel yLabel label gaugeLabels
Colour props
color ecgColor syncColors colorFrom colorTo background
Mood
dark, hud
Roles
subject
Pairs with
Number counter, HUD chrome overlay, Callout labels

Use Live chart / ECG traces in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render live-chart --props '{"title":"fetal growth","xLabel":"wk","yLabel":"kg","label":"in sync","gaugeLabels":["LOW","MEDIUM","HIGH"],"color":"#C8D0F5","ecgColor":"#E05DD5","syncColors":["#E978D6","#F4D96A"],"colorFrom":"#5FE0F0","colorTo":"#E75855","background":"#020414"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export live-chart --as mp4 --props '{"title":"fetal growth","xLabel":"wk","yLabel":"kg","label":"in sync","gaugeLabels":["LOW","MEDIUM","HIGH"],"color":"#C8D0F5","ecgColor":"#E05DD5","syncColors":["#E978D6","#F4D96A"],"colorFrom":"#5FE0F0","colorTo":"#E75855","background":"#020414"}'

React / Next.js

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

<MotionPlayer
  motion="live-chart"
  props={{
    title: 'fetal growth',
    xLabel: 'wk',
    yLabel: 'kg',
    label: 'in sync',
    gaugeLabels: ['LOW', 'MEDIUM', 'HIGH'],
    color: '#C8D0F5',
    ecgColor: '#E05DD5',
    syncColors: ['#E978D6', '#F4D96A'],
    colorFrom: '#5FE0F0',
    colorTo: '#E75855',
    background: '#020414',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="live-chart"
  props='{"title":"fetal growth","xLabel":"wk","yLabel":"kg","label":"in sync","gaugeLabels":["LOW","MEDIUM","HIGH"],"color":"#C8D0F5","ecgColor":"#E05DD5","syncColors":["#E978D6","#F4D96A"],"colorFrom":"#5FE0F0","colorTo":"#E75855","background":"#020414"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "live-chart",
      "props": {
        "title": "fetal growth",
        "xLabel": "wk",
        "yLabel": "kg",
        "label": "in sync",
        "gaugeLabels": [
          "LOW",
          "MEDIUM",
          "HIGH"
        ],
        "color": "#C8D0F5",
        "ecgColor": "#E05DD5",
        "syncColors": [
          "#E978D6",
          "#F4D96A"
        ],
        "colorFrom": "#5FE0F0",
        "colorTo": "#E75855",
        "background": "#020414"
      }
    }
  ]
}

Live chart / ECG traces props

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

PropDefaultWhat it does
mode"trace"'trace' (growth + synapses + ECG), 'sync' (dual heartbeat sync), 'decline' (quality chart + gauge), 'threshold' (line steps toward a dashed limit, final point breaks it with shake, ring, readout panel + stamp), 'scope' (phosphor oscilloscope: beat-repainted trace with echoes, graticule, CRT-off exit)
data[0.05,0.12,0.3,0.6,1,1.5,2.1,2.7,3.1,3.4]trace: main curve values (one sample revealed per 0.25 s)
declineValues[1,0.93,0.97,0.8,0.84,0.62,0.66,0.45,0.32]decline: values of the falling red line
title"fetal growth"trace: chart title; decline: monitor title ('QUALITY' also names the gauge REASONING EFFORT)
xLabel"wk"
yLabel"kg"
readout"wk 8 → wk 40 · 3.4 kg"trace: typed mono readout under the chart
color"#C8D0F5"trace: main curve colour
ecgColor"#E05DD5"trace: ECG colour
syncColors["#E978D6","#F4D96A"]sync: [first, second] trace / heart colours
label"in sync"sync: label typed when the traces align
bpm140ECG beats per minute (sync uses it for both hearts)
colorFrom"#5FE0F0"decline: starting line colour
colorTo"#E75855"decline: colour after the switch
gaugeLabels["LOW","MEDIUM","HIGH"]
gaugeFrom0.85decline: needle start 0..1 (0 = LOW, 1 = HIGH)
gaugeTo0.5decline: needle end 0..1
background"#020414"background colour (trace / decline)
series[]threshold: 0..1 values of the line ([] = built-in climb that breaks the limit on the last point)
threshold0.72threshold: height of the dashed limit line, 0..1
stamp"BREAK"threshold: stamp text that lands on the readout panel
echoes4scope: number of fading previous sweeps kept on screen
graticuletruescope: draw the glass graticule over the trace
secondaryLabel"synapses"trace: axis label of the second (synapse) curve
gaugeTitle""decline: gauge heading (empty = 'REASONING EFFORT' when title is 'QUALITY', else 'EFFORT')

Notes & credits

Technique sources:

  • video11 8:00-9:42 live-chart-trace
  • video11 20:00-21:96 dual-heartbeat-sync
  • video12 52:83-57:60 data-decline-chart