Sign in to follow this  
airpearlc

Yaxismin, Yaxismax

Recommended Posts

I have the following chart data - I'm trying to get yAxisMin and yAxisMax to work. I assume it is to control the min and max value that should be shown on the chart but when I load this chart, I still see 17400. Am I misinterpreting this parameter?

 

<graph caption='Monthly Sales Summary' subcaption='For the year 2004' xAxisName='Month' yAxisMinValue='19000' yAxisName='Sales' decimalPrecision='0' formatNumberScale='0' numberPrefix='$' showNames='1' showValues='0' showAlternateHGridColor='1' AlternateHGridColor='ff5904' divLineColor='ff5904' divLineAlpha='20' alternateHGridAlpha='5' >

<set name='Jan' value='17400' hoverText='January'/>

<set name='Feb' value='19800' hoverText='February'/>

<set name='Mar' value='21800' hoverText='March'/>

<set name='Apr' value='23800' hoverText='April'/>

<set name='May' value='29600' hoverText='May'/>

<set name='Jun' value='27600' hoverText='June'/>

<set name='Jul' value='31800' hoverText='July'/>

<set name='Aug' value='39700' hoverText='August'/>

<set name='Sep' value='37800' hoverText='September'/>

<set name='Oct' value='21900' hoverText='October'/>

<set name='Nov' value='32900' hoverText='November' />

<set name='Dec' value='39800' hoverText='December' />

</graph>

Share this post


Link to post
Share on other sites

Hi,

 

Please note, the first <set> element has a value lesser than "yAxisMinValue" that you have mentioned in the <chart> element.

Ref. - <set name='Jan' value='17400' hoverText='January'/>

 

FusionCharts automatically takes up the lowest value provided in the data as tha minimum value for Y-axis when the "yAxisMinValue" mentioned is greater than any data-values. Please try mentioning the minimum value of Y-axis equal to or less than the lowest data-value present in the XML.

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Sanjukta Mukherjee,

 

is it any chance to set maximum value of Y-axes equal to 19 when I have data set with Y-value equal to 25 ?

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

FusionCharts will automatically adjust the value according to the data provided by XML.

 

Hence, the value 19 will be ignored.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

FusionCharts does not support the feature you are looking for, at this time.

 

Hope this helps.

Share this post


Link to post
Share on other sites

Hi,

 

I am trying to set the Y-axis (upper) maximum and (lower) minimum values in my MSLINE chart.

 

I have tried given below code in my Java code to set the Y-Axis min and max value.

 

Code:

chartAttributes.put("setAdaptiveYMin", "90");

and

chartAttributes.put("yAxisMinValue", "90");

 

None of the above chart properties are working for me. I am using Fusion Chart Version 3.2.1.

 

Thanks in Advance.

 

Thanks and Regards,

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

This is to update you that <setAdaptiveYMin> attribute takes only boolean value 0 or 1.

 

Could you please send us the generated XMl code to look into the issue form our end?

 

Awaiting for your reply.

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
Sign in to follow this