after effects bar graph

"Create Stunning After Effects Bar Graphs: Tutorial & Tips"

By Thomas Moore
AD

Creating Interactive Bar Graphs in Adobe After Effects

In the realm of motion graphics, Adobe After Effects is a powerhouse tool that offers a wealth of possibilities. One of the most engaging and informative ways to present data is through animated bar graphs. This article will guide you through the process of creating interactive bar graphs in After Effects, ensuring your data comes to life and captivates your audience.

Understanding Bar Graphs in After Effects

Before diving into the creation process, it's crucial to understand that After Effects doesn't have a built-in bar graph tool. However, with a bit of creativity and the use of shapes, expressions, and controllers, you can create dynamic and interactive bar graphs. Here's a step-by-step guide to help you achieve this.

Preparing Your Data

Before you start, ensure your data is ready. For this example, let's use a simple dataset with three categories: 'Apples', 'Bananas', and 'Cherries', each with a corresponding value (e.g., 10, 15, and 20 respectively).

AD
Monthly Profit Margin Bar Chart | After Effects & Premiere Pro Template
Monthly Profit Margin Bar Chart | After Effects & Premiere Pro Template
three business cards with numbers and graphs on them
three business cards with numbers and graphs on them
an image of a line graph with a red light coming from it in the dark
an image of a line graph with a red light coming from it in the dark

Setting Up the Project

Create a new After Effects project and set your composition's width and height according to your needs. For this tutorial, let's use a 1920x1080 composition.

Creating the Bar Graph

Now that you've set up your project, it's time to create the bar graph.

Stats & Data Animation
Stats & Data Animation
インフォグラフィックス / アニメーション
インフォグラフィックス / アニメーション
Arrow
Arrow

Creating the Bars

1. Create a new solid (Layer > New > Solid). Name it 'Bar 1' and make it a rectangle that fills the composition's width. Set its color to a shade of your choice.

2. Duplicate the 'Bar 1' layer twice to create 'Bar 2' and 'Bar 3'. Rename them accordingly.

AD

3. Position each bar vertically, ensuring they don't overlap. You can use the 'Position' property in the 'Transform' panel to do this.

a black background with a green line and the words 13 52 %
a black background with a green line and the words 13 52 %
Animating graphs in After Effects – Bar graphs
Animating graphs in After Effects – Bar graphs
the bar chart shows that there are many different types of items in this screen shot
the bar chart shows that there are many different types of items in this screen shot
Animated bar chart
Animated bar chart
How to Create a Bar Graph in Adobe After Effects
How to Create a Bar Graph in Adobe After Effects
a bar chart on a blue background with an arrow pointing up to the top and bottom
a bar chart on a blue background with an arrow pointing up to the top and bottom

Animating the Bars

To create the bar graph effect, you'll need to animate the height of each bar based on your data.

1. Select 'Bar 1' and press 'P' to reveal its anchor point. Position the anchor point at the bottom of the bar.

AD

2. Press 'S' to reveal the scale property. Scale the bar vertically to 0%. This will hide the bar initially.

the bar chart is shown in blue and white
the bar chart is shown in blue and white
an orange and white poster with numbers on it's sides, in different colors
an orange and white poster with numbers on it's sides, in different colors
Jene Tan
Jene Tan
an image of a bar graph with the numbers 755 - 23 in chinese and english
an image of a bar graph with the numbers 755 - 23 in chinese and english
Turn Boring Graphs Into Epic Animations with This After Effects Trick
Turn Boring Graphs Into Epic Animations with This After Effects Trick
business graph animation.
business graph animation.
a bar chart with an arrow pointing up to the top and below it is a line graph
a bar chart with an arrow pointing up to the top and below it is a line graph
Bar Chart Race Builder - After Effects Template
Bar Chart Race Builder - After Effects Template
a pink and yellow poster with the words 47 %, 32 %, 26 %
a pink and yellow poster with the words 47 %, 32 %, 26 %
How to Create a Bar Graph in Adobe After Effects
How to Create a Bar Graph in Adobe After Effects
after effect 3d graph tutorial
after effect 3d graph tutorial
可视化数据
可视化数据
Bar Chart Animation in after effects
Bar Chart Animation in after effects
a line graph showing the number of people who have been married to each other in years
a line graph showing the number of people who have been married to each other in years

3. Create a keyframe for the scale property at the start of your composition (Layer > Animate > Scale).

4. Create another keyframe at the end of your composition and scale the bar to 100%. This will reveal the bar's full height.

AD

5. Repeat these steps for 'Bar 2' and 'Bar 3', adjusting the scale value at the end keyframe according to your data (e.g., 'Apples' could be scaled to 100%, 'Bananas' to 150%, and 'Cherries' to 200%).

Adding Interactivity

To make your bar graph interactive, you can use expressions to link the bars' heights to sliders or other controllers.

Creating a Slider Controller

1. Create a new null object (Layer > New > Null Object). Name it 'Slider Controller'.

2. Add a slider control to the 'Slider Controller' layer (Effect > Slider Control).

3. Rename the slider control to 'Slider'.

Linking the Bars to the Slider

1. Select 'Bar 1' and press 'T' to reveal its scale property.

2. Alt-click on the scale property's stopwatch to add an expression box.

3. In the expression box, type `thisComp.layer("Slider Controller").effect("Slider Control")(1)` and press Enter. This links the bar's height to the slider's value.

4. Repeat these steps for 'Bar 2' and 'Bar 3', adjusting the expression to reference the correct bar (e.g., for 'Bar 2', use `thisComp.layer("Slider Controller").effect("Slider Control")(2)`).

Refining the Graph

Now that you have a working bar graph, you can refine it to match your project's style. This could involve adding labels, changing colors, or even animating the bars to reveal the data over time.

Here's a simple way to add labels:

  • Create a new text layer for each bar's label (Layer > New > Text).
  • Position the text layers next to their corresponding bars.
  • Use the 'Position' property to animate the text layers, revealing them at the same time as their corresponding bars.

Conclusion

Creating interactive bar graphs in After Effects requires a bit of creativity and understanding of the tool's capabilities. By following this guide, you've now got a dynamic and engaging way to present data in your motion graphics projects.

AD