need help with pie chart ,its urgent!!

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
manuvishnoi
Posts: 4
Joined: Tue May 23, 2006 10:29 pm
Contact:

need help with pie chart ,its urgent!!

Post by manuvishnoi » Wed Jul 12, 2006 5:11 pm

Hi
I want to display a pie chart having same key name i.e.

DefaultPieDataset data = new DefaultPieDataset();
data.setValue("Category 1", new Double(43.2));
data.setValue("Category 1", new Double( 27.9));
data.setValue("Category 1", new Double(9.5));
data.setValue("Category 1", new Double(89.5));
data.setValue("Category 1", new Double(70.5));

When I run this code this gives a pie chart as a whole combining all the Category 1 values.

So it it possible to get all the Category 1 values displayed seperately on a pie chart.The problem is that I cant change the Category 1 to something else.


Thanks.
Gaurav.

pmarsollier
Posts: 49
Joined: Thu Jul 08, 2004 8:54 am
Location: France

Post by pmarsollier » Thu Jul 13, 2006 7:53 am

in a pie, 1 category => 1 value

so you'll have to change it !!

Locked