HowTo: preserving space after removing legend

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

HowTo: preserving space after removing legend

Post by Peter Hanson » Wed Oct 10, 2001 3:03 pm

Hello again,

I was wondering how one might preserve some padding on the right hand side of the chart after you set the legend to null?

With the legend removed, the final tick value is crammed against the right side.

Any ideas on getting back some padding?

Cheers,

Peter

David Gilbert

RE: HowTo: preserving space after removing legend

Post by David Gilbert » Fri Oct 12, 2001 8:09 pm

Hi Peter,

You could try the setInsets() method in the Plot class - you probably want to add some extra padding on the right.

When I was coding version 0.5.6 I didn't test without the legend...but I'll make sure it works better for 0.6.0 (which is being worked on).

Regards,

DG.

Locked