Sign in to follow this  
viy

Remove Decimals If Amount Of Items Is Less Than 2

Recommended Posts

Hi everyone,

I try to use Fusion Chart Column 2D chart and have some misunderstanding with its options.

 

Column chart shows the amount of some items but if amount of items is less than 2 chart start to show decimal numbers on its div lines. I tried few different options to remove this decimal number but had no luck. My goal is to hide any decimal number and 0.

 

Thanks in advance.

Share this post


Link to post
Share on other sites

Hi,

 

Hi everyone,

I try to use Fusion Chart Column 2D chart and have some misunderstanding with its options.

 

Column chart shows the amount of some items but if amount of items is less than 2 chart start to show decimal numbers on its div lines. I tried few different options to remove this decimal number but had no luck. My goal is to hide any decimal number and 0.

 

Thanks in advance.

 

Please try setting "decimals" and "adjustDiv" attributes to '0' in the <chart> element and see if this helps.

Ex:

<chart ... decimals='0' adjustDiv='0' >

 

Hope this helps. :)

Share this post


Link to post
Share on other sites

Thank`s for quick reply.

 

Unfortunately this solution removes divLines also when amount of items more than 2, but I need them.

Share this post


Link to post
Share on other sites

Hi,

 

Thank`s for quick reply.

 

Unfortunately this solution removes divLines also when amount of items more than 2, but I need them.

 

Please note that you can explicitly provide the desired number of divisional lines using ":numDivLines" attribute in the <chart> element of the XML.

 

Hope this helps. :)

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