public Element getVerticalBarChartFromColumn( int col ) {
if ( isstacked ) {
return getStackedBarChartFromColumn( col );
} else {
BarChart bc;
if ( issketch ) {
bc = new SketchBarChart();
( (SketchBarChart) bc ).setFunFactor( sketchBarFunFactor );
( (SketchBarChart) bc ).setOutlineColour( getOutlineColor( col ) );
} else {
bc = new BarChart( this.barchartstyle );
if ( this.barchartstyle == Style.THREED && threedheight != null ) {
chart.getXAxis().set3D( threedheight );
}
}
for ( int row = 0; row < getRowCount(); row++ ) {
double d = ( (Number) getValueAt( row, col ) ).doubleValue();
bc.addBars( new BarChart.Bar( d ) );
}
bc.setColour( getColor( col ) );
if ( tooltipText != null ) {
bc.setTooltip( tooltipText );
}
// set the title for this series
bc.setText( getColumnHeader( col ) );
// set the onclick event to the base url template
if ( null != baseURLTemplate ) {
bc.setOn_click( baseURLTemplate );
}
if ( alpha != null ) {
bc.setAlpha( alpha );
}
return bc;
}
}