How to Make a Bar Chart Race in Adobe After Effects

by

23 Nov, 2026
How to Make a Bar Chart Race in Adobe After Effects

A bar chart race shows a ranking changing over time: the bars grow, overtake each other and re-sort, while the year counts up in the corner. It is one of the most watched chart formats on YouTube and social media. In Adobe After Effects it takes two things: each bar’s length must follow the data, and each bar must move to its new rank at every step. Here is how to prepare the data and the three ways to build it.

A bar chart race in Adobe After Effects: bars re-sort as the year changes.

Step 1: prepare the data

Lay the table out like this, in Excel or Google Sheets:

Service2019202020212022
Kestrel51616470
Northwind40577178
Orbit23435255
  • One row per category, one column per period. Years, quarters or months all work.
  • No empty cells. A category that doesn’t exist yet gets 0.
  • Keep it to about 10 to 12 visible bars. More categories can be in the data, but only the top ones should show.
  • Same unit everywhere, and round the values to what the viewer needs to read.

Method 1: build it by hand with expressions

This is the free route, and it shows how a race works.

  1. Make one shape layer per category, a rectangle anchored at its left edge, and a text layer for its name and value.
  2. Add a Slider Control effect named “Value” to each bar, and keyframe it at each period with that category’s value. Adobe After Effects can also read a CSV file imported into the project, with footage("data.csv").dataValue([column, row]) in an expression, which saves typing the keyframes.
  3. Link the bar’s width to the slider, scaled to your longest value.
  4. Rank the bars with an expression on each bar’s Position, which counts how many bars have a larger value:
const bars = 10;                 // the bar layers are layers 1 to 10
const me = effect("Value")("Slider");
let rank = 0;
for (let i = 1; i <= bars; i++) {
  const v = thisComp.layer(i).effect("Value")("Slider");
  if (v > me || (v == me && i < index)) rank++;
}
[value[0], 120 + rank * 70];    // 70 px per row
  1. The bars now jump to their rank. To make them glide, smooth the rank over time: compute it at a few earlier frames with valueAtTime() and average, or use ease() between the rank at the previous and the next period.
  2. Add the year counter, an axis that grows with the leading value, and the labels that count up.

Good for: learning, and full control. Limits: it takes hours, the expressions slow down long comps, and changing the data or the number of bars means reworking the setup.

Method 2: use a template

Motion template marketplaces sell bar chart race projects: you paste your data into a control layer and render. It’s quick when the template’s look fits, but you are tied to its design, its number of bars and its data format, and adapting it is often harder than building one.

Method 3: build it from the table with DataInk Motion

DataInk Motion for Adobe After Effects builds the race as ordinary shape and text layers with plain keyframes:

  1. Open Window > Extensions > DataInk Motion and paste the table on the Data tab, or import a CSV or Excel file.
  2. Pick Bars. On the Motion tab, turn on Animate from column to column and Bar race.
  3. Set the timing per step and the easing, and watch the preview in the panel.
  4. Click Create chart. You get a new comp in which the bars re-sort at every step, the values count up in your number format, the year counts in the corner and each step has a comp marker.

Because the result is keyframes, not expressions, you can retime it in the Graph Editor and animate on top of it. When the figures change, select the comp, edit the data and click Update chart: the timing and your hand edits stay. The same comp switches to 9:16 for Reels and Shorts in one click.

Tips for a race people watch to the end

  • Give each period one to two seconds. Faster is hard to follow; slower loses the viewer.
  • Fix the colours per category, not per rank, so viewers can follow one bar.
  • Put the value at the end of each bar and the period in large type in a corner.
  • Hold the last frame for two or three seconds so the final ranking sinks in.
  • Write the source under the chart. Viewers of data videos check.
  • Use a 9:16 version for Reels, Shorts and TikTok, with fewer bars and larger text.

For other chart animations, see the 13 chart types in DataInk Motion.

Frequently asked questions

How do I make a bar chart race in Adobe After Effects?

Put one category per row and one value column per year. Then animate each bar's length from year to year and move the bars to their new rank at every step, by hand with expressions, with a template, or with a plugin such as DataInk Motion that builds the race from the table.

What data does a bar chart race need?

A table with the categories in the first column (countries, brands, players) and one column of values per period (2015, 2016, 2017...). Every period needs a value for every category; use zero, not an empty cell, when a category has none yet.

How long should a bar chart race be?

About one to two seconds per period. A race over 20 years lasts 30 to 40 seconds, which suits social media; slower steps help when the voice-over comments on each period.

Oussama Touzni is part of the team at Lingway, which makes plugins for Adobe InDesign, Illustrator, Photoshop and After Effects. LinkedIn