I'm having a problem similar to that described in this post http://www.jfree.org/phpBB2/viewtopic.php?t=7360
However, instead of forcing an extra tick mark to appear at my maximum dataset value, I'd willing to use the (hopefully) easier solution of adding one tick unit to the axis upper bound.
I haven't been able to figure out how to retrieve the size of the tick unit being used in the chart. I'm letting JFreeChart automagically determine the tick unit size, and I'd prefer to keep it that way because I don't want to screw up the tick labels. But since the standardTickUnits is a set of possible tick units, it doesn't help me figure out which tick unit is actually in use. Anyone know how to do this? Is it even possible in the current version?
-Adam
Getting the active tick unit from the standard ticks units
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The getTickUnit() method should return the correct value, but only after the chart has been drawn (the tick unit is selected as the chart is being drawn, since the chart size is not known until drawing time).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

