Negative percentages in pie chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Raymond Marfurt

Negative percentages in pie chart

Post by Raymond Marfurt » Sun Nov 24, 2002 6:09 pm

Hi,

I use 0.9.2. When I create a pie chart and set the direction to CLOCKWISE, I get negative percentage values around the chart. Is there an option to change this behaviour?

Regards,
Raymond

Dave Gilbert

Re: Negative percentages in pie chart

Post by Dave Gilbert » Mon Nov 25, 2002 10:23 am

Hi Raymond,

This was a bug in version 0.9.2, it is fixed in the latest release.

Regards,

DG

Raymond Marfurt

Re: Negative percentages in pie chart

Post by Raymond Marfurt » Tue Dec 03, 2002 11:32 am

Hi,

I upgraded to jfreechart 0.9.4 and jcommon 0.7.1

Now, I get for all pieces just 0 (if < 50%) or 1 (if > 50%). The percentage sign is missing. In the legend, everything is fine. Is there a new parameter in the latest version that I have to consider?

regards,
Raymond

David Gilbert

Re: Negative percentages in pie chart

Post by David Gilbert » Wed Dec 04, 2002 11:59 am

Hi Raymond,

That sounds strange...what are the data values you are using?

Regards,

DG

Raymond Marfurt

Re: Negative percentages in pie chart

Post by Raymond Marfurt » Thu Dec 05, 2002 9:16 am

I create a PieDataset with the values 12, 8, 10, 17, 27, 5, 1, 0, 20. But it happens also with any other combination of values. The legend is drawn correctly.

Regards,
Raymond

Locked