Reduce white space associated with legends

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
TMazzotta
Posts: 40
Joined: Thu Mar 27, 2003 7:11 pm

Reduce white space associated with legends

Post by TMazzotta » Tue Jun 29, 2004 11:42 pm

Is there a way to do one or both of the following:

- Reduce the vertical space betwen the chart and the legend (assuming the legend is in the south (bottom) position)

- Reduce the vertical space between rows of items within a legend


I have a number of small graphs that have alot of wasted white space that I'd like to 'give back' to the chart itself.

Thanks in advance!

DopeForADay
Posts: 32
Joined: Thu Apr 22, 2004 9:15 am

Post by DopeForADay » Wed Jun 30, 2004 7:08 am

Try using the setInnerGap() and setOuterGap() methods of the StandardLegend class.

TMazzotta
Posts: 40
Joined: Thu Mar 27, 2003 7:11 pm

Post by TMazzotta » Wed Jun 30, 2004 6:24 pm

thanks for the response...
I'm using version 9.6 of JFreechart.. I don't see those methods with the StandardLegend class. Do you know what version they were added?

Locked