# Dynamic Graph chart

**URL:** <https://forum.kirupa.com/t/dynamic-graph-chart/304>\
**Category:** flash\
**Created:** [July 12, 2002, 9:23pm UTC](https://forum.kirupa.com/t/dynamic-graph-chart/304 "2002-07-12T21:23:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![windy](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@windy](https://forum.kirupa.com/u/windy)\
**Post date:** [July 12, 2002, 9:23pm UTC](https://forum.kirupa.com/t/dynamic-graph-chart/304/1 "2002-07-12T21:23:01Z")

</div>

Guys  
Please check the following link.  
[http://www.notestips.com/flashchart1.html](http://www.notestips.com/flashchart1.html)

if you click on update chart, you will see the bars setting up as per the field value.

this guy who created the chart has given a maths equation to set the bar height according to field value.

duplicateMovieClip(“y”, bar, m);  
setProperty(bar, \_width, Number(Lenght)/Number(NoOfValues));  
setProperty(bar, \_x, Number(getProperty(XAxis, \_x))+Number((2_n-1)/2_(Number(getProperty(bar, \_width))+10)));  
setProperty(bar, \_height, (eval(“y” add n)/max)\*Hight);  
setProperty(bar, \_y, Number(getProperty(yAxis, \_y))-Number(getProperty(bar, \_height))/2);

Since i am not that familiar with actionscript, i am confused how he calculates the bar height.

he has taken the major source help from flash kit tutorial, dynamic flash chart.

I need a simple code to calculate the bar height.  
thanks for your help.
