X axis label display

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

X axis label display

Post by Guest » Tue Jul 26, 2005 6:46 am

Hi,

I used CategoryPlot to make my chart, but I have no idea about how to change the display style of X axis label. eg. from horizontal to vertical. :?

Anyone who can help me?
THX

Sarika
Posts: 17
Joined: Sat Apr 02, 2005 6:18 am

Post by Sarika » Tue Jul 26, 2005 8:40 am

Try following

Code: Select all

categoryaxis.setCategoryLabelPositionOffset(10);
categoryaxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);

Locked