Grouping segments of a pie chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
conwaypm
Posts: 11
Joined: Wed Dec 21, 2011 2:49 pm
antibot: No, of course not.

Grouping segments of a pie chart

Post by conwaypm » Thu Feb 16, 2012 11:50 am

Hello. I was wondering if JFreeChart (specifically 1.0.12) offers a way to easily group together a number of adjacent segments on a pie chart, such that they have their own legend and the label on the chart refers to the group (not the individual segments)?

I am currently trying to do this and I figure that it should be quite easy to give each grouping it's own legend (groups will be defined in the input data). The main problem is that I can think of no obvious way of handling the labeling of the segment-group on the pie itself. Ideally it would also have a curved line running parallel to the pie denoting the range of segments that the label applies to, although I could live without that.

Any help would be appreciated.

Locked