-
Making a pie chart with expressions
Hi everyone,
I’m in need of some assistance finetuning the controls for a pie chart.
So here’s the deal:
I made a pie chart in AE using circular shapes of different colors. I animate them on with a radial wipe; very fancy indeed 🙂
Because I am going to be using these pie charts a lot, I decided to bundle the controls in a null with slider controls linked to the animation completion for each slice of the pie. All works well except for one thing!
I want the slices to animate in, in a clockwise fashion. To achieve this with a radial wipe, you need to set the animation to counterclockwise and reverse animate. So for instance if you want to animate to a 25% slice of the pie, you need to keyframe the transition completion from 100% to 75%. This is in itself not a huge problem, but I would like my sliders to correspond with the percentages of the slices. Sometimes we work with decimal numbers etc. and it’s annoying to have to have a calculator handy everytime I make a pie chart.
So in a nutshell, what expression do I use to make my slider values correspond to the opposite numbers in the radial wipe.
So:
slider value 0 = transition completion 100
slider value 1 = transition completion 99
slider value 2 = transition completion 98
slider value 3 = transition completion 97Help would be greatly appreciated !!!! And if you have the time to explain why your sollution works, that would also be great! (see attachted image https://www.dropbox.com/s/rqkzi7tgjow138e/Untitled1.jpg )