* @param iAxisChartDataSet
**************************************************************************************/
static void render( AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet )
{
Graphics2D g2d = axisChart.getGraphics2D();
BarChartProperties barChartProperties = (BarChartProperties) iAxisChartDataSet.getChartTypeProperties();
float barWidth;
//---y axis position on screen to start drawing.
float startingX;
float startingY;
float width;
float height;
if( axisChart.getAxisProperties().isPlotHorizontal() )
{
barWidth = axisChart.getYAxis().getScalePixelWidth() * barChartProperties.getPercentage();
startingX = axisChart.getXAxis().getZeroLineCoordinate();
startingY = axisChart.getYAxis().getLastTickY() - (barWidth / 2);
width = 0;
height = barWidth;
Rectangle2D.Float rectangle = new Rectangle2D.Float( startingX, startingY, width, height );
BarChart.horizontalPlot( axisChart,
iAxisChartDataSet,
barChartProperties,
g2d,
rectangle,
startingX );
}
else
{
barWidth = axisChart.getXAxis().getScalePixelWidth() * barChartProperties.getPercentage();
startingX = axisChart.getXAxis().getTickStart() - (barWidth / 2);
startingY = axisChart.getYAxis().getZeroLineCoordinate();
width = barWidth;
height = 0;
Rectangle2D.Float rectangle = new Rectangle2D.Float( startingX, startingY, width, height );