LegendAutomatic

This property enables or disables automatic sizing and positioning of the legend box.

Syntax:

setLegendAutomatic(boolean);
boolean = getLegendAutomatic();

where:

boolean

Can be one of the following:

true automatically sets the size of the legend box to half of the height or width of the graph and positions the legend box in the center of the graph frame.

false does not auto-calculate legend position and size. This value is the default.

Example:

setViewableGroups(3);
setViewableSeries(3);
setDataScrollerPresenceGroups(0);
setDepthRadius(0);
setLegendOrient(0);
   setLegendAutomatic(true);
setY1AxisSide(1);
setLegendRect(new Rectangle(-15340,-3478,4948,18550));

bar graph

setLegendAutomatic(false);

bar graph

See LegendDisplay, LegendMarkerPosition, LegendReverse, setLegendRect().


WebFOCUS