return bc;
}
}
public Element getHorizontalBarChartFromColumn( int col ) {
HorizontalBarChart hbc = new HorizontalBarChart();
for ( int row = 0; row < getRowCount(); row++ ) {
double d = ( (Number) getValueAt( row, col ) ).doubleValue();
hbc.addBars( new HorizontalBarChart.Bar( d ) );
}
hbc.setColour( getColor( col ) );
if ( tooltipText != null ) {
hbc.setTooltip( tooltipText );
}
// set the title for this series
hbc.setText( getColumnHeader( col ) );
// set the onclick event to the base url template
if ( null != baseURLTemplate ) {
hbc.setOn_click( baseURLTemplate );
}
if ( alpha != null ) {
hbc.setAlpha( alpha );
}
return hbc;
}