Sign in to follow this  
Nishi

integer values for pie chart

Recommended Posts

Hi....

 

I need my pie chart 2 display integer values only....ie it should display datavaue as 1..Not 1.00...i hav tried to set the decimal = 0...Stil its not working....

 

 

 

 

 

Thnx in regards

 

Nishi

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Nishi,

We have tested your issue in our lab and is not able to replicate it as it seems to work fine.

In case you wish to display only the integer part of the datavalues and not the decimal extention, you need to set the 'decimals' attribute in the <chart> element to '0'.

Please note, the attribute 'decimals' sets the number of decimal places to which all numbers on the chart would be rounded to.

So in case you set decimals='0', then the value 12.5 would get rounded to 12 whereas 12.6 would get rounded to '13'.

Similarly, in case you set decimals='2', then the value 12.5 would get displayed as 12.50.

For further details please refer to the link below:-

Ref.- http://www.fusioncharts.com/docs?/Number_Basics.html 

Hope this helps. :(

Share this post


Link to post
Share on other sites

Hi...

 

I have added the attribute formatNumber='0' and now its showing integer value only....Nyway thanx for the reply......

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi Nishi,

Glad that your issue is resolved.

Keep smiling and keep 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
Sign in to follow this