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
piechart
Re: piechart
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.
> 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.