Sign in to follow this  
yacoubean

Show 0 Decimal Values

Recommended Posts

We are using MSArea.swf, and we have a data value of 9.00. We want to show the '00' after the decimal. I have tried everything I can find, and I've searched high and low, but I cannot get that 00 to show. If I change the value to 9.01 the decimals show. Here's the XML:

 

<chart yAxisValuesPadding='0' plotFillAlpha='100' plotBorderAlpha='100' bgColor='ffffff' forceDecimals='2' decimals='2' numberPrefix='' numberSuffix='¢' yAxisMaxValue='13' yAxisValuesStep='2' valuePadding='3' placeValuesInside='1' outCnvBaseFontColor='666666' caption='Standard Residential Plan' subcaption='' xAxisName='Monthly kWh Usage' yAxisName='Cents per kWh' showNames='1' showValues='0' numVDivLines='10' plotGradientColor='' showAlternateVGridColor='0' showlegend='0' AlternateVGridColor='ffffff' divLineColor='ffffff' vdivLineColor='e1f5ff' baseFontColor='666666' canvasBorderThickness='0' showBorder='0' showPlotBorder='1' plotBorderThickness='0'>
 <categories>
<category label='0'/>
<category label='400' showLabel='0'/>
<category label='800'/>
<category label='1400' showLabel='0'/>
<category label='2000'/>
<category label='3000' showLabel='0'/>
<category label='4000' showLabel='0'/>
 </categories>
 <dataset seriesName='0-800' color='ffcb4f' showvalues='1' plotBorderColor='333333'>
<set value='7.24' showvalue='0'/>
<set value='7.24'/>
<set value='7.24' showvalue='0'/>
 </dataset>
 <dataset seriesName='801-2,000' color='ffcb4f' showvalues='1' plotBorderColor='333333'>
<set/>
<set/>
<set value='8.05' showvalue='0'/>
<set value='8.05'/>
<set value='8.05' showvalue='0'/>
 </dataset>
 <dataset seriesName='2,001 Over' color='ffcb4f' showvalues='1' plotBorderColor='333333'>
<set/>
<set/>
<set/>
<set/>
<set value='9.00' showvalue='0'/>
<set value='9.00'/>
<set value='9.00' showvalue='0'/>
 </dataset>
</chart>

 

As you can see, I am using both the "forceDecimals" and "decimals" attributes, to no avail.

Share this post


Link to post
Share on other sites
Guest Bindhu

Hi,

 

Welcome to the FusionCharts Forum :)

 

Thank you for the post.

 

Please modify your code and set the attribute "forceDecimals" to 1 instead of 2. It is of type "boolean".

 

Please find attached screen shot of the chart rendered with the above settings applied.

 

Also, for more details on ' Multi-series Area 2D Chart Specification Sheet', please refer to the link below,

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

 

Hope this helps!

post-23884-0-54698300-1341550486_thumb.png

Edited by Bindhu

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