How can i rotate the values of the x axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
akkeri
Posts: 13
Joined: Sat Nov 22, 2003 10:50 pm

How can i rotate the values of the x axis

Post by akkeri » Thu Nov 27, 2003 10:11 pm

I have long values to isplay on the x axis. is it possible to rotate them to get better image.

swiss

Post by swiss » Fri Nov 28, 2003 9:16 am

try

Code: Select all

ValueAxis timeAxis = new DateAxis("date");
timeAxis.setVerticalTickLabels(true);

akkeri
Posts: 13
Joined: Sat Nov 22, 2003 10:50 pm

Post by akkeri » Fri Nov 28, 2003 10:56 pm

Thank you but i used:
CategoryAxis axis = (CategoryAxis) plot.getDomainAxis();
axis.setVerticalCategoryLabels(true);

Locked