* @param axisChart
*********************************************************************************************/
static void render( AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet ) throws ChartDataException
{
Graphics2D g2d = axisChart.getGraphics2D();
StackedBarChartProperties stackedBarChartProperties = (StackedBarChartProperties) iAxisChartDataSet.getChartTypeProperties();
float barWidth;
//---y axis position on screen to start drawing.
float startingX;
float startingY;
float width;
float height;
DataAxisProperties dataAxisProperties;
if( axisChart.getAxisProperties().isPlotHorizontal() )
{
dataAxisProperties = (DataAxisProperties) axisChart.getAxisProperties().getXAxisProperties();
barWidth = axisChart.getYAxis().getScalePixelWidth() * stackedBarChartProperties.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 );
StackedBarChart.horizontalPlot( axisChart, iAxisChartDataSet, stackedBarChartProperties, dataAxisProperties, g2d, rectangle, startingX );
}
else
{
dataAxisProperties = (DataAxisProperties) axisChart.getAxisProperties().getYAxisProperties();
barWidth = axisChart.getXAxis().getScalePixelWidth() * stackedBarChartProperties.getPercentage();
startingX = axisChart.getXAxis().getTickStart() - (barWidth / 2);
startingY = axisChart.getYAxis().getZeroLineCoordinate();
width = barWidth;
height = 0;