A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
kler44
Post
by kler44 » Tue Nov 02, 2004 11:03 am
hi !
I'm using jfreechart-0.9.8.
How can we change the orientation of the labels in the horizontal axis of a vertical bar chart, for example a 45 degrees orientation ?
thanks
-
kler44
Post
by kler44 » Wed Nov 03, 2004 9:39 am
Please...
someone help !
-
lrebyc
- Posts: 6
- Joined: Sat Oct 30, 2004 6:38 am
Post
by lrebyc » Fri Nov 05, 2004 11:00 am
I am not sure, if we are taking about the same, but what's about this:
// rotate Y-Axis
ValueAxis valAxis = (ValueAxis) plot.getRangeAxis();
valAxis.setLabelAngle(###angle###);
Should work for all axis, api says : angle - the angle (in radians)
-
kler44
Post
by kler44 » Fri Nov 05, 2004 3:22 pm
It doesn't work : the method setLabelAngle() is undefined for the type ValueAxis...
-
lrebyc
- Posts: 6
- Joined: Sat Oct 30, 2004 6:38 am
Post
by lrebyc » Fri Nov 05, 2004 3:57 pm
I just noticed, that you're working on version 0.9.8 (are you sure?). Should be very
old, 2004 starts with version 0.9.16?
The current version 0.9.21 implements setLabelAngle in the class Axis. ValueAxis
extends Axis, so there's no problem with the method.
Please check your version of jfreechart.
-
kler44
Post
by kler44 » Tue Nov 09, 2004 5:03 pm
Yes, I'm working with version 0.9.8.
Isn't there a way with this version to set label angle ?
-
Guest
Post
by Guest » Tue Nov 09, 2004 8:07 pm
yes there is

)
-
kler44
Post
by kler44 » Wed Nov 10, 2004 4:06 pm
And what is it ??
-
gguest
Post
by gguest » Wed Nov 10, 2004 4:31 pm
I think what he is after is how do you get the tick marks to be on an angle. Wish version 0.9.21 I see this in the Miscellaneous demo CategoryStepChartDemo1 where the Type [1-8] labels (ticks?) along the x axis are angled.
-
class
- Posts: 2
- Joined: Tue Dec 14, 2004 4:06 am
Post
by class » Fri Dec 17, 2004 4:11 am
Is there method "setTickLabelAngle()" in v0.9.21?
The demo Miscellaneous/CategoryStepChartDemo1 has tick label angle.
how does it work?