net.comrom.chart
Class BarDataSerie
java.lang.Object
net.comrom.chart.DataSerie
net.comrom.chart.BarDataSerie
- public class BarDataSerie
- extends DataSerie
A BarDataSerie is a DataSerie that will be plotted using
bars (horizontal) or columns (vertical).
Example of use:
double[] d1={1,2,3,4,5,4,2};
BarDataSerie data1= new BarDataSerie(d1,new FillStyle(GraphicsProvider.getColor(ChartColor.ORANGE)));
data1.borderType=BarDataSerie.BORDER_RAISED;
data1.valueFont=new Font("Arial",Font.BOLD,10);
double[] d2={2,3,4,4.2,6.4,4.5,6.1};
BarDataSerie data2= new BarDataSerie(d2,new FillStyle(GraphicsProvider.getColor(ChartColor.GREEN)));
data2.valueFont=new Font("Arial",Font.BOLD,10);
data2.borderType=BarDataSerie.BORDER_RAISED;
data2.negativeStyle=new FillStyle(GraphicsProvider.getColor(ChartColor.RED));
| Fields inherited from class net.comrom.chart.DataSerie |
dataLabels, hotAreas, htmlLinks, labelTemplate, name, nullValue, secondaryXAxis, secondaryYAxis, secondYAxis, tips, valueFormat |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BORDER_NORMAL
public static final int BORDER_NORMAL
- See Also:
- Constant Field Values
BORDER_LOWERED
public static final int BORDER_LOWERED
- See Also:
- Constant Field Values
BORDER_RAISED
public static final int BORDER_RAISED
- See Also:
- Constant Field Values
BORDER_NO
public static final int BORDER_NO
- See Also:
- Constant Field Values
style
public FillStyle style
negativeStyle
public FillStyle negativeStyle
border
public LineStyle border
- If borderType is BORDER_NORMAL, this style will be used to draw the border.
border2
public LineStyle border2
negativeborder
public LineStyle negativeborder
negativeborder2
public LineStyle negativeborder2
valueColor
public ChartColor valueColor
valueFont
public ChartFont valueFont
borderType
public int borderType
barStyles
public FillStyle[] barStyles
BarDataSerie
public BarDataSerie(FillStyle s)
BarDataSerie
public BarDataSerie(double[] x,
double[] y,
FillStyle s)
- Parameters:
x - y - s -
Creates a serie with the specified values (points x,y) and style.
BarDataSerie
public BarDataSerie(double[] y,
FillStyle s)
addBarsBase
public void addBarsBase(double[] b)