When rendering labels on axis I get pretty often labels that overlay one another. This is pretty bad, since it's relatively easy to fix. You can either:
1) (HARD) have list of boxes (of taken items) and refuse to render on top of another.
2) (EASY) not fix the issue, but fix the visuals. Render with bg paint a box matching the size of the label.
#2 is what I've done in the past, but its really hard to remember all the tweaks between the library updates. So.. would this be possible to add into Jcommon, text rendering bit? or that (better idea) 1.2.0 would be expedited on this little thing. Or better yet, axis rendering would not be responsibility of the renderer, but someone else. It's hazardous to rely on the renderer, says that I really can just create xyitemrenderer and expect to get same results. Especially since it differs if the renderer is in index 0 or not.
Ideas?
Labels overlapping on axis (domain, xy)
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I'm confused when you say the axis labels rely on the XYItemRenderer for rendering...the labels are drawn by the axis itself in the drawTickMarksAndLabels() method. Maybe I misunderstood what you meant.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

