A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
rwankar
- Posts: 23
- Joined: Thu Aug 14, 2003 3:42 pm
Post
by rwankar » Thu Oct 23, 2008 11:58 am
Hello,
See the image:
I want to add more spacing to the label '100'. I tried setting the UpperMargin on RangeAxis to 0.1 and the space is added but then another tick is added that says 110. Since 100% can be the maximum, I don't want 110 to appear. I just want more space for my labels but want the max to remain at 100. How do I achieve this?
Thanks.
-
hsp707
- Posts: 18
- Joined: Thu May 15, 2008 4:58 pm
Post
by hsp707 » Thu Oct 23, 2008 3:18 pm
Have you tried AxisSpace??
-
david.gilbert
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
-
Contact:
Post
by david.gilbert » Thu Oct 23, 2008 3:40 pm
I would use the setUpperMargin() setting on the axis, but also override the refreshTicks() method to make sure that it never puts tick marks above 100%.