Can not set vertical label in CategoryPlot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Fritz Wepper

Can not set vertical label in CategoryPlot

Post by Fritz Wepper » Thu Sep 26, 2002 8:32 am

Hi,

I am having the problem that using the setVerticalLabels() method on a CategoryPlot does not seem to have any effect on the chart.
Can somebody help me?

Regards,
Fritz

David Gilbert

Re: Can not set vertical label in CategoryPlot

Post by David Gilbert » Thu Sep 26, 2002 9:17 am

Hi Fritz,

That method will rotate the 'value' labels on the chart (if they are visible). For example, in a bar chart the value labels appear just above the bars.

If you want to rotate the category labels on the axis, then you need to use the setVerticalCategoryLabels(...) method in the HorizontalCategoryAxis class.

Regards,

DG.

Fritz Wepper

Re: Can not set vertical label in CategoryPlot

Post by Fritz Wepper » Fri Sep 27, 2002 6:54 am

Thanks very much, David

Locked