FORUMS: list search recent posts

Truncated Bar Graph

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Brian Holzknecht
Truncated Bar Graph
on Feb 20, 2015 at 5:59:47 pm

Hopefully someone can help me. I don't use expressions often, and I've found tons of help online creating bar graphs, but I can't seem to find anything that accounts for a truncated bar graph, meaning the base value is non zero. I'm using the y scale to change the bars height. I believe the below expression when added to the scale property of each bar works great, but now I would love to be able to have a slider control on my chart control layer that I can put in a truncated value and have all the bars adjust accordingly.

I hope that makes sense.

Thanks,

Brian Holzknecht

x = transform.scale[0];
barvalue = effect("bar value")("Slider");
percentage = effect("percentage")("Slider");
maxvalue = thisComp.layer("chart controls").effect("max value")("Slider");

y = barvalue/maxvalue;
[x, y*percentage]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]