Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Truncated Bar Graph

  • Truncated Bar Graph

    Posted by Brian Holzknecht on February 20, 2015 at 5:59 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]

    Brian Holzknecht replied 11 years, 2 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy