com.googlecode.charts4j
Interface BarChartPlot


public interface BarChartPlot

Encapsulates data and plot decorations that will be rendered in a BarChart. Construct with Plots static factory class.

Author:
Julien Chastang (julien.c.chastang at gmail dot com)
See Also:
Data, DataUtil, BarChart

Nested Class Summary
static class BarChartPlot.DataLine
          Type for specifying a dataline sitting on top of the bar chart.
 
Method Summary
 void setDataLine(int dataLineSize, Color color, Priority priority)
          Add a data line on top of the bar chart and specify the color and Priority of that line.
 void setFillAreaColor(Color color)
          Define a fill area color below this plot.
 void setZeroLine(double zeroLine)
          Set the bar chart zero line for this plot.
 
Methods inherited from interface com.googlecode.charts4j.Plot
addMarker, addMarkers, addShapeMarker, addShapeMarkers, addTextMarker, setColor, setLegend
 

Method Detail

setDataLine

void setDataLine(int dataLineSize,
                 Color color,
                 Priority priority)
Add a data line on top of the bar chart and specify the color and Priority of that line.

Parameters:
dataLineSize - The line thickness for this data line. Must be > 0.
color - The color of this data line. Cannot be null.
priority - The priority of this data line. Cannot be null.

setZeroLine

void setZeroLine(double zeroLine)
Set the bar chart zero line for this plot. Number must be between Data.MIN_VALUE and Data.MAX_VALUE corresponding to the same numeric data range in the Data class.

Parameters:
zeroLine - the zeroLine to set between Data.MIN_VALUE and Data.MAX_VALUE
See Also:
Data, DataUtil

setFillAreaColor

void setFillAreaColor(Color color)
Define a fill area color below this plot. Order is important! If you have multiple plots, you may have your fill areas obscure each other. You may have to experiment to get the result you want.

Parameters:
color - The color of the fill area that will appear below this particular plot. cannot be null.