Sign in to follow this  
Guest Rajroop

problem adding one more Quarter

Recommended Posts

Hi,

 

 

 

I have downloaded FusionChart and run it, by default it has 4 products and 4 Quarters. But how I can add one more Quarter and its values.

 

I have XML code which I can easily change and put it in the string and then passing this string to the flash object's function.

 

For 4 products and 4 Quarters I have this code...

 


<chart caption='Product Wise Sales' formatNumberScale='0' numberPrefix='$' animation='1'  showValues='1' rotateValues='1' placeValuesInside='1'  YAXISNAME='hi pakistan' yaxisminvalue='5' yaxismaxvalue='60'><categories><category name='Quarter 1' /><category name='Quarter 2' /><category name='Quarter 3' /><category name='Quarter 4' /><category name='Quarter 5' /></categories><dataset seriesName='Product A' ><set value='60' /><set value='40' /><set value='55' /><set value='45' /></dataset><dataset seriesName='Product B' ><set value='5' /><set value='40' /><set value='50' /><set value='30' /></dataset><dataset seriesName='Product C' ><set value='45' /><set value='55' /><set value='34' /><set value='43' /></dataset><dataset seriesName='Product D' ><set value='43' /><set value='40' /><set value='45' /><set value='32' /></dataset></chart>

 

 

 

but where I will add more code if I want to add one more Quarter i.e; Quarter 5 and its values

 

 

 

Thanks in advance

 

CRINCH

Share this post


Link to post
Share on other sites
Guest Rajroop

Hey Crinch,

 

 

 

Could you please specify which chart you are using for this?

 

 

 

Looking forward to your reply.

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

If you add Quarter 5 as the last category, please place one <set> element at the end of each <dataset>, together with the value for Quarter 5.

e.g. presently for product A and 4 quarters the code is as below:

<dataset seriesName='Product A' >

<set value='60' />

<set value='40' />

<set value='55' />

<set value='45' />

</dataset>

Now, if the category 'Quarter 5' is added and for Product A the value for Qurater 5 is 98, please use the code below:

<dataset seriesName='Product A' >

<set value='60' />

<set value='40' />

<set value='55' />

<set value='45' />

<set value='98' />

</dataset>

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