Version 0.9.10: MultiPie and Label Orientation

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
patrickherber
Posts: 8
Joined: Mon Jul 28, 2003 5:07 pm

Version 0.9.10: MultiPie and Label Orientation

Post by patrickherber » Mon Jul 28, 2003 5:13 pm

Hallo,

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);
but what I get is a blank chart (with Version 0.9.9 still worked).

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); 
as described in the Developer documentation. This is my method (the method on the CategoryAxis works fine).


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);
			}
		}
	}
Thanks for your Help
Patrick

Locked