Sign in to follow this  
Razvan Deac

Problem With Ranges And Yaxismaxvalue.

Recommended Posts

Hi,

 

I've noticed a problem when using ranges/trendzone. For example if you have a range set this will automatically set the 'yAxisMaxValue' property to the highest 'endValue' of ranges added. After the chart is loaded if you set the 'yAxisMaxValue' to a specific value the JSONData of the chart will break.

 

 

How can we manage this scenario?

 

 

Thanks,

Razvan

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

A warm welcome to FusionCharts Forum! smile.gif

 

Can you please provide some information on following points?

 

> What FusionCharts version are you using?

 

> What chart type are you using? Also, can you please share the sample chart JSON/XML with us?

Share this post


Link to post
Share on other sites

Hi,

 

Take 'Column 2D Chart' for example.

Feed it with this xml for example:

 

<chart canvasTopMargin="1" aboutMenuItemLabel="About" showBorder="0" formatNumberScale="1" bgColor="FFFFFF" yAxisMaxValue="500" paletteColors="4572A7,AA4643,89A54E,80699B,DB843D,7A1D20,80c0f0,00c090,e89f7b,c06090,3080a0" showPercentInToolTip="0" showValues="0" numberScaleUnit="K,M,B" xAxisName="Dummy" maxLabelWidthPercent="35" labelDisplay="AUTO" exportEnabled="1" chartTopMargin="5" canvasBorderColor="CCCCCC" showExportDataMenuItem="1" showShadow="0" numberScaleValue="1000,1000,1000" exportAction="save" plotGradientColor="" yAxisName="Dummy" canvasBorderThickness="0" yAxisMaxValue="300.0"> <set label="2012 A 2" value="1430"/> <set label="2012 B 3" value="1292"/> <set label="2012 C 4" value="85"/>

<trendLines>

<line endValue="300.0" isTrendZone="1" startValue="100.0" color="#DA1616" displayValue="Min" valueOnRight="1" showOnTop="0" thickness="2"/>

</trendLines> <styles> <definition> <style name="PlotBevel" type="Bevel" distance="2"/> <style name="divShadow" type="shadow" angle="45" distance="2" color="000000"/> </definition> <application> <apply toObject="DataPlot" styles="PlotBevel"/> <apply toObject="DIVLINES" styles="divShadow"/> </application> </styles></chart>

JSONData() of the chart does not retuns expected properties,none of them is available.This happens when the red colored data is set.

Regards,Razvan

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi,

 

<chart canvasTopMargin="1" aboutMenuItemLabel="About" showBorder="0" formatNumberScale="1" bgColor="FFFFFF" yAxisMaxValue="500" paletteColors="4572A7,AA4643,89A54E,80699B,DB843D,7A1D20,80c0f0,00c090,e89f7b,c06090,3080a0" showPercentInToolTip="0" showValues="0" numberScaleUnit="K,M,B" xAxisName="Dummy" maxLabelWidthPercent="35" labelDisplay="AUTO" exportEnabled="1" chartTopMargin="5" canvasBorderColor="CCCCCC" showExportDataMenuItem="1" showShadow="0" numberScaleValue="1000,1000,1000" exportAction="save" plotGradientColor="" yAxisName="Dummy" canvasBorderThickness="0" yAxisMaxValue="300.0"> <set label="2012 A 2" value="1430"/> <set label="2012 B 3" value="1292"/> <set label="2012 C 4" value="85"/>

<trendLines>

<line endValue="300.0" isTrendZone="1" startValue="100.0" color="#DA1616" displayValue="Min" valueOnRight="1" showOnTop="0" thickness="2"/>

</trendLines> <styles> <definition> <style name="PlotBevel" type="Bevel" distance="2"/> <style name="divShadow" type="shadow" angle="45" distance="2" color="000000"/> </definition> <application> <apply toObject="DataPlot" styles="PlotBevel"/> <apply toObject="DIVLINES" styles="divShadow"/> </application> </styles></chart>

 

 

In the above chart XML, you have specified "yAxisMaxValue" attribute as "300.0" and "500". And in endValue attribute of trendLines element, you have provided "300.0"

 

"yAxisMaxValue" is the higher limit for y-axis and "endValue" attribute is a higher limit provided for the trendZone.

 

endValue: The ending y-axis value for the trendline. Say, if you want to plot a slanted trendline from value 102 to 109, the endValue will be 109. If you do not specify a value for endValue, it will automatically assume the same value as startValue.

 

yAxisMaxValue: 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 XT based on the data provided by you.

 

For more information, please refer the following link:

http://docs.fusioncharts.com/charts/contents/?ChartSS/Column2D.html

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for your reply.

The problem actually was that after setting this configuration cannot get JSON Data of the chart anymore.

Should this problem be handled by adding restrictions on the combination of the attributes and data used to feed the chart?

 

Thanks,

Razvan

Share this post


Link to post
Share on other sites

Hi,

 

Hi,

 

Thanks for your reply.

The problem actually was that after setting this configuration cannot get JSON Data of the chart anymore.

Should this problem be handled by adding restrictions on the combination of the attributes and data used to feed the chart?

 

Thanks,

Razvan

 

Could you please specify the issue a bot elaborately?

 

Awaiting your feedback.

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