Hi,
Has jfree chart implemented a heuristic that will group segments of a
pie chart that are too small or insignificant to dedicate an entire segment and
label for?
For example, say I have a dataset of 100 values to draw, I would only like to show the top 10 values separately. The others would be grouped together in a single segment titled 'other'. Is there a means to do this?
Cheers,
Nick
Grouping minor/insignificant values of a Pie Chart
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The DatasetUtilities class has a createConsolidatedPieDataset() method that does something along these lines. You need to apply it to the original dataset - it will return a new dataset that you add to the plot.
Possibly the PiePlot class could be extended to support this more directly.
Possibly the PiePlot class could be extended to support this more directly.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

