Guide

Animated charts for video

How to turn a dataset into a short chart video for a post, a reel or an explainer, with Chartreuse or anything else.

1. One finding per chart

A chart in a video is on screen for a few seconds. Decide the one thing the viewer should take away and write it as the title, in a sentence: "Solar overtook coal in 2024", not "Electricity by source". Cut every series that doesn't help that sentence.

2. Pick the chart by the data

The data decides the form. Values over time want a line or a race; shares of a total want a stacked bar or a waffle; two values per item want a dumbbell. Start from the data you have:

3. Motion that explains

  • Draw the final state first, then animate towards it once: grow, draw on, count up. The last frame should work as a still.
  • Move one thing at a time, in the order the narration mentions it.
  • Leave the finished chart on screen for at least two seconds before cutting away.
  • Avoid looping motion; it pulls the eye from the words.

4. Size and legibility

  • Vertical video is 1080 by 1920; landscape is 1920 by 1080; square is 1080 by 1080.
  • On a phone, text under about 28 px at 1080 wide is hard to read. Fewer labels, bigger.
  • At most six colours; grey for everything that isn't the point.
  • Keep titles and captions out of the bottom fifth of a vertical frame, where apps put their own buttons.

5. Render it

Chartreuse records a chart's motion frame by frame in a headless browser and joins the frames into an MP4 on your own machine:

npx chartreuse add bar-race
npx chartreuse render bar-race --data rows.csv --format mp4 --size 1080x1920 --theme theme.css

The MP4 carries the chart's own sounds (the same synthesised set the site plays, in the --tone's set; --silent for none); add voice and music in your editor. Free renders carry a small "Made with Chartreuse" mark; Pro renders are clean. --format png gives a still of the final frame.

Charts that work well in video

  • Bar race · Pro · not released yet. Use a bar race to show a ranking re-forming year by year, when the drama of overtaking is the point. Use it when a ranking changes over many time steps.
  • Line with crosshair · Free (MIT). Use a line chart with a crosshair when readers need to read every series at the same moment, not just see the shapes. Use it when 2 to 6 series share one unit and one time axis.
  • Dumbbell · Free (MIT). Use a dumbbell to show one change per item: where each started, where it ended, and the gap between. Use it when each item has exactly two values (before and after, with and without).
  • Waffle · Free (MIT). Use a waffle to show shares as countable squares: 100 squares, each one per cent of the whole. Use it when a few shares of one whole (2 to 6).
  • 100% stacked bar · Free (MIT). Use a 100% stacked bar to split one total into a few shares, read left to right like a ruler. Use it when one total splits into 2 to 6 parts.
  • Warming stripes · Free (MIT). Use warming stripes to show a long run of years as one band of colour, so a trend is felt at a glance with no axis to read. Use it when a single series over many years where the trend is the message.
  • Scale journey · Pro · not released yet. Use a scale journey to compare values across many orders of magnitude: the stops sit on a log line, and a slider zooms a plain linear view from one stop to the next. Use it when values span three or more orders of magnitude.
  • World choropleth · Free (MIT). Use a world choropleth to show one rate or share per country, coloured in shades of one ink, when where it happens is the story. Use it when one rate, share or per-person value per country.

Other ways to do it

  • Remotion: write the whole video in React, charts included. The better pick when the chart is one part of a longer programmatic video you already build in Remotion.
  • Flourish: a hosted editor with a bar chart race and story templates; record the screen or use its export. The better pick if you don't want to touch code.
  • After Effects or Motion: full control by hand. The better pick for a one-off where every frame is art-directed.

Comparing chart libraries in general? See how Chartreuse compares.