Position legend within xyplot

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
snoopygee
Posts: 18
Joined: Wed Jan 28, 2009 3:10 pm

Position legend within xyplot

Post by snoopygee » Thu Apr 23, 2009 11:41 am

Hi all,

Can anyone please tell me how to position the legend within an XYPlot (ideally top right hand side of the chart), in a vertical orientation.

Thanks in advance.

Snoopygee

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Position legend within xyplot

Post by david.gilbert » Sat Apr 25, 2009 7:46 am

You could try putting a LegendTitle inside an XYTitleAnnotation and adding that to the plot.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked