I've noticed that with Version 0.9.10 is no more possible to create multiple pies (I've seen there is already a message about that).
In my code I have:
Code: Select all
plot = new PiePlot(dataset, PiePlot.PER_ROW);
Second problem (this one did also not work with 0.9.9) is that I cannot rotate the labels of a Value axis using the method
Code: Select all
axis.setLabelAngle(Math.PI / 2.0);
Code: Select all
private void setAxisLabelOrientation(CategoryPlot plot)
{
if (categoryLabelsOrientation != null) {
CategoryAxis axis = plot.getDomainAxis();
if ("vertical".equalsIgnoreCase(categoryLabelsOrientation)) {
axis.setVerticalCategoryLabels(true);
} else {
axis.setVerticalCategoryLabels(false);
}
}
if (valueLabelsOrientation != null) {
ValueAxis axis = plot.getRangeAxis();
if ("vertical".equalsIgnoreCase(valueLabelsOrientation)) {
axis.setLabelAngle(Math.PI / 2.0);
} else {
axis.setLabelAngle(0.0);
}
}
}
Patrick