Class WaterfallBarRenderer

All Implemented Interfaces:
Serializable, Cloneable, LegendItemSource, CategoryItemRenderer, PublicCloneable

public class WaterfallBarRenderer
extends BarRenderer
A renderer that handles the drawing of waterfall bar charts, for use with the CategoryPlot class. Some quirks to note:
  • the value in the last category of the dataset should be (redundantly) specified as the sum of the items in the preceding categories - otherwise the final bar in the plot will be incorrectly plotted;
  • the bar colors are defined using special methods in this class - the inherited methods (for example, AbstractRenderer.setSeriesPaint(int, Paint)) are ignored;
The example shown here is generated by the WaterfallChartDemo1.java program included in the JFreeChart Demo Collection:

WaterfallBarRendererSample.png
See Also:
Serialized Form