Sign in to follow this  
traxdata12

Problem With A Simple Pie Chart - Why?!

Recommended Posts

Ok, so I am currently using Fusion Charts as a trial to decide whether it will do what I need. Bar charts seem to be ok. What I am having problems with is a pie chart. I have a query that returns:

 

REGION IR OR MT C

GB 216 66 56 3

 

I inset a dynamic simple chart, use region as the category (also tried using static), then add the values IR, OR, MT and C as series.

 

The chart just shows the first series and doesnt get the colour right either.

 

What am I doing wrong, I have played around with different combinations and can't seem to plot it right. I can get a bar chart to work, but at this rate I will be looking at an other product if I can't figure this out.

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Guest Sumedh

Hey,

 

Can you please provide some information on following points?

 

> What Chart type are you using? If possible, please send us the screen-shot of your issue with browser console details.

 

> What FusionCharts version are you using?

 

> Also send us the chart XML as well as sample code for testing purposes.

Share this post


Link to post
Share on other sites

Hi,

 

A pie chart can accept only a single series (a single set) of data. Where as, a Multi-series Bar chart can of course take multiple sets of data.

 

Probably the way you have passed the data is causing this.

 

You would actually need to consider 216 66 56 3 as the data for series GB and the categories are IR OR MT C.

 

Can you please check if your generated XML is similar to :

 

<chart caption="GB">
 <set value='216' label='IR'/>
 <set value='66' label='OR'/>
 <set value='56' label='MT'/>
 <set value='3' label='C'/>
</chart>

 

In case, you are

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