A discussion forum for JFreeChart (a 2D chart library for the Java platform).
-
paololim
- Posts: 11
- Joined: Tue Jul 17, 2007 3:08 pm
- Location: Hopewell Junction, NY
Post
by paololim » Mon Nov 19, 2007 5:29 pm
Hi There.
Is it possible to add a box/reference/legend frame on the plot itself and not as a legend item below the plot? If there is a quick fix for this, how can I do it? Thanks. Example of a chart I have on a different charting API is given below. Notice the mean/stddev/etc box in the upper left of the plot.

-
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 » Mon Nov 19, 2007 5:31 pm
See XYTitleAnnotationDemo1.java in the 'experimental' tree in the JFreeChart distribution. The XYTitleAnnotation class hasn't been transferred to the main API yet, because it has one or two glitches that I haven't been able to fix yet. But try it out, because it may work well for your case.