An animated bar chart in After Effects looks like the easiest piece of data viz you'll ever make. It's rectangles. They grow. How hard can it be?
Then the client sends 14 rows instead of 9, wants a vertical version for Reels, and asks if the bars can have rounded ends. That's when you find out how many decisions one "simple" bar chart hides.
This post walks through how a bar chart is usually built by hand in After Effects, the specific spots where it goes wrong, and how aeChart builds the same thing from a CSV. If you haven't got your data into After Effects yet, start with the CSV import guide. Bar charts inherit every CSV problem in there.
The manual setup, in short
The usual build goes like this:
- One shape layer per bar, with a Rectangle Path.
- An expression on the rectangle's Size that reads the value from the CSV.
- A text layer for the label, another one for the value.
- A null with sliders for Duration and Stagger so you can tweak timing in one place. The core expression looks something like this:
f = footage("sales.csv");
i = index - 2;
v = parseFloat(f.dataValue([1, i]));
w = linear(v, 0, 2500, 0, 1400);
d = thisComp.layer("Controls").effect("Duration")("Slider");
s = thisComp.layer("Controls").effect("Stagger")("Slider");
p = easeOut(time, i * s, i * s + d, 0, 1);
[w * p, value[1]]
That works for one bar. Then you duplicate it nine times and start discovering things.
Where a bar chart in After Effects gets painful
Scale vs. Size, and why your rounded corners melt
The quick way to grow a bar is to animate Scale X from 0 to 100. Looks fine, until you add Roundness. Scale squashes the rounded corners along with everything else, so at 15% width your nicely rounded ends turn into thin slivers.
The fix is to animate the rectangle's Size instead. But a rectangle path grows from its centre, so now the bar grows in both directions. You either offset the rectangle's Position by half the width every frame, or set up the anchor so the bar grows from its base. Neither is hard. Both are one more thing on every bar.
What's the maximum?
In the expression above I hard-coded 2500 as the max value. Real charts need that number calculated: read every row, find the largest, then round up to a "nice" axis value (1, 2, 2.5 or 5 times a power of ten). If you just map the biggest value to full width, the longest bar always touches the edge, and your gridlines end up at 1,847 and 3,694. Nobody wants a gridline at 1,847.
So the expression on every bar now loops through every row. And the gridlines need the same calculation to know where they go.
Labels that follow the bar
Value labels belong at the tip of the bar, and the tip moves. So the label's position reads the bar's current width and adds some padding. Short bars are worse: is the label inside or outside the bar? That depends on the label's width, which means sourceRectAtTime(), which means another expression that knows about another layer.
Then the number itself should count up while the bar grows. That's toFixed() plus a regex for thousands separators, and a decision about whether you're writing 1,234.5 or 1.234,5. (toLocaleString() looks tempting here. I wouldn't trust it inside After Effects.)
Fitting N bars into the frame
Bar height and gap depend on how many rows there are: available height, minus the gaps, divided by the row count. Change the row count and every bar's position changes. Want 16:9, 9:16 and 1:1? The available space changes too, so you either build three comps or build one very clever one. I've done both. The clever one took longer.
Vertical columns are nearly a rewrite
Switching from horizontal bars to vertical columns sounds like swapping x and y. It isn't, quite. After Effects' y-axis points down, so "grow upward" means growing into negative values, the labels move from the side to the top, and the category labels now have to fit under bars that are much narrower than the text. Every expression gets touched.
More than one series
Comparing 2025 against 2026? Now each row has two (or three, or four) bars, each offset within its row, each in its own colour, plus a legend that has to match. Per-row colouring (every bar its own colour) is a different system again.
Lollipops
A lollipop chart is a thin stem with a dot at the end. Lovely to look at, and twice the layers: the dot has to ride the tip of the stem, and stem width and dot size should be controlled together or you'll end up with a pin holding a beach ball.
Sorting
Expressions can't reorder layers. If you want the bars sorted by value, you sort the spreadsheet before import, or you calculate each bar's rank in the expression and position it by rank. The second option is basically a bar chart race without the race, and that's its own article.
How aeChart builds a bar chart
Here's the same chart with aeChart:
- Data › Choose CSV... and pick your file. The preview shows which column becomes the labels and which ones become series.
- Chart › Type: Bar. Pick Orientation (horizontal bars or vertical columns), Style (Bars or Lollipop) and Coloring (Per Series or Per Row).
- Set Sort to as in file, descending or ascending, and check up to 4 series.
- Output › Format: 16:9, 9:16, 1:1, or all three at once.
- Build Comp. You get a comp built from regular shape layers and text layers, plus a red null called CHART CTRL. That null is where all the stuff above lives:
- Bar Height, Bar Gap, Corner Radius, so rounded ends are one slider, not a rebuild.
- Duration, Delay, Stagger, Ease Style (Expo Out, Cubic Out, Back Out, Linear).
- Count Up, Decimals and Separator Style for the value labels.
- Show Gridlines, Show Values, Show Axis Labels, Show Background.
- Series 1–6 Color, plus the theme colours for text and grid.
- For lollipops, Line Width sets the stem and Dot Size the dot. Everything updates live. No rebuild for a different corner radius.
When the data changes, Update Data swaps the CSV in. If the row count changed, aeChart offers a rebuild, and that rebuild keeps the CHART CTRL values you changed and any layers you added to the comp yourself. Your custom title stays, too.
When I'd still build one by hand
If your chart has three bars made of stacked coins, or each bar is a different illustrated object, build it by hand. A tool that reads CSVs won't draw you coins, and with three bars, the data side is five minutes of typing anyway.
Anything with more rows than that, or anything you'll update next month, or anything that needs three aspect ratios, is where the hand-built version starts costing you. And it'll be the version you open again at 11 pm when the numbers change.