Axis

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

Axis

Post by Tom » Fri Jan 31, 2003 3:30 pm

I have 19 categories in a stackVertical3DChart. I 'd like to draw the 19 labels category vertically (with a Tag property cewolk...).
How can i do ???

Tanks...

David Gilbert

Re: Axis

Post by David Gilbert » Fri Jan 31, 2003 5:09 pm

You need to use code like this:

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

Not sure how you do that using tags in Cewolf...

Regards,

Dave Gilbert

Locked