Hi all,
I've got a scatter plot with labels on the (x,y) points. I know it's not the greatest idea to have labels on a scatter plot, but for now, it's what I have to work with.
Several of the points are close together and the labels overlap. I'm trying to figure out a way to keep the labels from overlapping. Has anyone solved this problem?
Kenny
Control Label Positioning?
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I didn't even try. You'd need to test for overlapping with all the other labels that have been drawn previously, and if overlapping occurs, find somewhere to move the label to. Not easy. If prefer to hide the labels and rely on tooltips to see the detailed values (not an option for everyone, I know).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

