Muhammad Fahad

How To Change Thousand To Millions?

Recommended Posts

Hi to all,

Please guide me how to change fusion chart values thousand to millions.

Now when i use fusion chart in vb6 it gives values in thousands but i want to convert it in millions.

so please tell me how to do this.???

Thanx in advance.

 

Waiting for you immediate response.

 

Regrds,

Muhammad Fahad

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Thanks for your appreciation.

 

FusionCharts, by default, has 1000,1000 (K,M) scaling defined for all charts. It doesn't have the scaling for billions defined. Let's modify the number scaling to add billion so that the final scale looks like 1000,1000,1000 .

This scale, in human terms, would look something as under:

 

1000 = 1 K

1000 K = 1 M

1000 M = 1 B

 

Now, to convert this scale into FusionCharts XML/JSON format, you'll have to do the following:

 

<chart numberScaleValue='1000,1000,1000' numberScaleUnit='K,M,B' >

 

Hope this helps!smile.gif

 

If this is not you are looking for, please send us a screenshot of your requirement.

 

Edited by Angie

Share this post


Link to post
Share on other sites

but i want that if my value is 1milllion (10,00000) so it should give 1 million at bar.

and if value is less than one million (9,99,999) so it giver 0.9 milion at bar..

i dont want in result in k..

please reply this...

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Since XML only accepts static data, you need to provide the value in XML itself.

 

Ex: <set value='1000000' />

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome again to FusionCharts Forum!smile.gif

 

Please try the same using <decimals='2'> attribute inside the <chart> element.

 

Hope this helps.smile.gif

Share this post


Link to post
Share on other sites

ok i will try this.

there are two more problems in fusion chart.

1- when i get values of month from database it gives (1, 2 , 3 ...., 12) for months from my database.

Is there any facitly in fusion chart that it gives jan for1 , feb for 2 , mar for 3 ....... , dec for 12

 

2- when i make chart using bar...so it values go down

for example

consider [] equal to bar..

 

[] [] []

[] [] []

pa in am

ki di er

st a ic

an a

 

i want this

 

[] []

[] []

p i

a n

k d

i i

s a

t

a

n

 

or show pakistan in vertical??

please help me

waiting for your immediate response.

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