this.setPreferredSize(new Dimension(_width,_height));
DataSeries dataSeries = new DataSeries( _xAxisLabels, _xAxisTitle, _yAxisTitle, _title );
String[] legendLabels= { yAxisLabel };
BarChartProperties barChartProperties= new BarChartProperties();
barChartProperties.setShowOutlinesFlag(outlinesBarFlag);
ValueLabelRenderer valueLabelRenderer = new ValueLabelRenderer(false, false, showGrouping, 0);
valueLabelRenderer.setValueLabelPosition(ValueLabelPosition.AT_TOP);
valueLabelRenderer.useVerticalLabels(true);
if (legendFont != null) {
valueLabelRenderer.setValueChartFont(new ChartFont(legendFont, new Color(foreColor.getRGB())));
}
barChartProperties.addPostRenderEventListener(valueLabelRenderer);
Paint[] paints = new Paint[] { color };
AxisChartDataSet axisChartDataSet =
new AxisChartDataSet(
_data, legendLabels, paints, ChartType.BAR, barChartProperties );