EvilPuppetMaster

Adaptive Y axis is a little too big sometimes

Recommended Posts

Hi,

 

 

 

Is there anyway to adjust the amount that the adaptive Y axis adapts?

 

 

 

I am getting situations where it adds an extra div at the top and/or the bottom compared to what I really would want.

 

 

 

Attached is a sample xml displaying the issue, I am using the multi-series combo chart (MSCombi2D.swf).

 

 

 

If you run the sample, you'll see the Y axis goes from 0 to 5%, even though the lowest value is about 1.56 and the highest is 3.17. I would really only want it to show from 1 to 4%.

 

 

 

Thanks for any tips

 

Tom

sample_fusion_data.xml

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello,

 

 

 

Welcome to the FusionCharts Forum. :(

 

 

 

Could you please add the following attributes to your <chart> element and try again?

 

 

 

1. yAxisMinValue( Number )- This attribute helps you explicitly set the lower limit of the chart. If you don't specify this value, it is automatically calculated by FusionCharts based on the data provided by you.

 

 

 

2. yAxisMaxValue( Number )- This attribute helps you explicitly set the upper limit of the chart. If you don't specify this value, it is automatically calculated by FusionCharts based on the data provided by you.

 

 

 

For further reference, please refer to the link below:

 

http://www.fusioncharts.com/docs/Contents/ChartSS/Combi2D.html

 

 

 

I hope this helps. :)

Share this post


Link to post
Share on other sites

Hi, thanks for responding but I think you misunderstood me. I know I can set specific Y min and max values. My problem is the data is different every time so I don't know what the min and max should be exactly. What I really want to know is if there is a property to control exactly how much space the adaptive calculation leaves.

 

 

 

I am an enterprise customer so I have the source, if you can point me to the right files I can adjust it there.

 

 

 

Cheers

 

Tom

Share this post


Link to post
Share on other sites
Guest Rajroop

Hello Tom,

 

 

 

First off, apologies. My bad! :(

 

 

 

I'm afraid there is no functionality that supports this feature in FusionCharts: "to control exactly how much space the adaptive calculation leaves".

 

 

 

However, you could easily implement this by writing a small code at your end to do the folowing:

 

 

 

1. Note the input data range dynamically.

 

2. Calculate the y-axis limits and display accordingly.

 

 

 

I hope this helps. :)

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