macsig

How to set yAxisMinValue

Recommended Posts

Hello there,

 

I'm a newbie and I have hard time understanding why the code below:

 

 

 

xml.graph(:numdivlines => '10',

 

:lineThickness => '3',

 

:showValues => '0',

 

:numVDivLines => '10',

 

:formatNumberScale => '1',

 

:rotateNames => '1',

 

:decimalPrecision => '1',

 

:nchorRadius => '2',

 

:nchorBgAlpha => '0',

 

:numberPrefix => '',

 

:divLineAlpha => '30',

 

:showAlternateHGridColor => '1',

 

:yAxisMinValue => '4.0',

 

:yAxisMaxValue => '4.4',

 

:shadowAlpha => '50')

 

 

 

generates the chart below:

 

 

 

picture1zy.png

 

 

 

 

 

yAxisMinValue shouldn't define the lower point of the chart? Am I missing something?

 

 

 

Thanks.

 

 

 

Sig

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello Sig,

FusionCharts calculates the limits of the chart based on the dataplot values.

yAxisMinValue attribute works for the chart.

But, this situation can arise due to:

1. No <set> elements being defined

2. If any of the set element values are below the yAxisMinValue fixed for the chart, then the limits will extend down.

If you could please send us the generated XML so that we can check on it?

ref. - http://www.fusioncharts.com/docs/Contents/Debug/window.html

Share this post


Link to post
Share on other sites

thanks for your reply.

 

I'm not sure how I can get the XML file. I use a builder on my rails app.

 

Anyway I will try to get it and to post here.

 

 

 

Have a nice day.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We will be waiting for your reply and the XML codes.

Share this post


Link to post
Share on other sites

Hi

About getting the xml... there are 2 ways,

1. You can get the xml from the log file in rails.

2. If you are using v3 version of FusionCharts, then enable the debugMode to see the debug Window, where you can see the xml.

Hope this helps.

Srividya :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Glad that your issue is resolved.

Happy FusionCharting.

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