Class PiePlot<K extends Comparable<K>>

Type Parameters:
K - Key type for PieDataset
All Implemented Interfaces:
Serializable, Cloneable, EventListener, AnnotationChangeListener, AxisChangeListener, MarkerChangeListener, LegendItemSource, PublicCloneable, DatasetChangeListener
Direct Known Subclasses:
PiePlot3D, RingPlot

public class PiePlot<K extends Comparable<K>>
extends Plot
implements Cloneable, Serializable
A plot that displays data in the form of a pie chart, using data from any class that implements the PieDataset interface. The example shown here is generated by the program included in the JFreeChart Demo Collection:


Special notes:

  1. the default starting point is 12 o'clock and the pie sections proceed in a clockwise direction, but these settings can be changed;
  2. negative values in the dataset are ignored;
  3. there are utility methods for creating a PieDataset from a CategoryDataset;
See Also:
Plot, PieDataset, Serialized Form