Legend Position

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

Legend Position

Post by jiali » Mon Mar 18, 2002 1:51 am

Can I change the position of the Legend in the chart?for example,draw the legend at the right side of the chart area?

David Gilbert

Re: Legend Position

Post by David Gilbert » Mon Mar 18, 2002 9:46 am

You should be able to use the setAnchor(...) method with one of the constants Legend.NORTH, Legend.SOUTH, Legend.WEST or Legend.EAST.

Regards,

Dave Gilbert

Locked