// initialize the 2d-pie-chart and get a PNG image out of it
PieChart2DProperties pieChart2DProperties = new PieChart2DProperties();
pieChart2DProperties.setPieLabelType(PieLabelType.VALUE_LABELS);
pieChart2DProperties.setRoundingPowerOfTen(2);
PieChartDataSet pieChartDataSet = new PieChartDataSet("Verteilung",
points, labels, paints, pieChart2DProperties);
PieChart2D pieChart2D = new PieChart2D(pieChartDataSet,
new LegendProperties(), new ChartProperties(), 300, 300);