Editing of Category Names

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

Editing of Category Names

Post by Ricky » Thu Mar 06, 2003 3:41 am

Hi,

I'm new to JFreeChart and I'm not sure whether my concern have been raised before or not but would appreciate if anyone can help me.

I'm using createLineChart and I would like to display the category names in a diagonal layout instead of the horizontal layout. The category is quite long and become unreadable in a horizontal and would like to be displayed diagonally.

Thanks in advance.

David Gilbert

Re: Editing of Category Names

Post by David Gilbert » Thu Mar 06, 2003 5:41 pm

Diagonal isn't possible yet, only horizontal or vertical:

CategoryPlot plot = myChart.getCategoryPlot();
HorizontalCategoryAxis axis = (HorizontalCategoryAxis) plot.getDomainAxis();
axis.setVerticalTickLabels(true);

Regards,

Dave Gilbert

Locked