Class PiePlot<K extends Comparable<K>>

java.lang.Object
org.jfree.chart.plot.Plot
org.jfree.chart.plot.PiePlot<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 PieChartDemo2.java program included in the JFreeChart Demo Collection:

PieChartDemo2.svg

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: