I'm having some trouble getting ticks to display at the right values. Whatever I do, the ticks are always at values that are multiples of the tick length, and I don't want that.
For example, let's say I have a time series chart where the y-axis ranges from -24.6 to 55.6. I want to draw ticks 10 units apart, but I want them to fall on values that end with .5. So for this chart, I want ticks (with labels and gridlines) at -24.5, -14.5, -4.5, 5.5, 15.5, 25.5, 35.5, 45.5, 55.5, and nowhere else. Is there any simple way to do something like this? I thought of trying to set the tick value to .5 and then erasing the ticks (and labels and gridlines) I don't want, but I can't find a way to do that either.
A discussion forum for JFreeChart (a 2D chart library for the Java platform).
1 post • Page 1 of 1