piechart

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

piechart

Post by jens » Wed May 01, 2002 7:48 pm

Hello,

two questions, regarding a PieChart:

1) Currently, the data is sorted alphabetically.
Is there an option so that JFreeChart does not change the order of the data?

2) If there are a lot of very small values in the piechart, the text at the side overlaps.
Any possibility to overcome this?

thanks a lot for your help!
jens

David Gilbert

Re: piechart

Post by David Gilbert » Thu May 02, 2002 6:14 am

jens wrote:
> 1) Currently, the data is sorted alphabetically.
> Is there an option so that JFreeChart does not change the
> order of the data?

This has been fixed in the development version of JFreeChart. The code is available from CVS on SourceForge.

> 2) If there are a lot of very small values in the piechart,
> the text at the side overlaps.
> Any possibility to overcome this?

Not yet. One solution would be to aggregate all sections smaller than some minimum size (say 5% by default) into a single section labelled "Other" (or whatever)...this could be coded in the PiePlot class.

Regards,

DG.

jens

Re: piechart

Post by jens » Thu May 02, 2002 10:30 pm

Dear David,

thanks for your help!!!
jens

Locked