move legend to top?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
phillip rhodes

move legend to top?

Post by phillip rhodes » Tue Nov 26, 2002 3:50 am

Hi,
Me again. Is there anyway to move the legend for a chart to the top of the chart panel, vs. the bottom?

Thank you very much.

Dave Gilbert

Re: move legend to top?

Post by Dave Gilbert » Tue Nov 26, 2002 12:29 pm

Yes, try this:

chart.getLegend().setAnchor(Legend.NORTH);

Regards,

DG

Locked