Emilio

formula for yAxisMaxValue?

Recommended Posts

Hello,

 

Can you share the formula that FusionCharts uses when calculating the yAxisMaxValue?

 

I'm overriding it for one of them, but I want FusionCharts to calculate the other one.  However, the adjustDiv attribute doesn't work that way.  By setting this to False, both axis are left for manual calculation, as well as the number of div lines.

 

If I knew what formula FC uses for calculating this, I could override one of them and supply this formula to the other one.

 

Thanks,

Emilio

Share this post


Link to post
Share on other sites
Hello,
 
For calculating the yAxisMaxValue, we take the max value(data value) and then divide it by the no. of y-interval, further adding one with the result, and finally multiply it with y-interval. 
 
This is how we get the yAxisMaxValue.

Hope this will help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now