views:

31

answers:

1

I'm working with JFreeChart and would like to create a Pie Chart that shows the first 10 records on the chart and the remainder of the records combined under "Other".

Is there an approach to do this?

A: 

Check out the PieChartDemo1 source. You should be able to use DefaultPieDataset or extend JDBCPieDataset if your records come from a database. In my opinion, the Developer Guide is a worthwhile investment. Disclaimer: I'm just a satisfied user & contributor.

trashgod