LegendOrient

This property controls the orientation of the legend markers in the legend area. If vertical (0) or horizontal (1) is selected, the size and placement of the legend area may need to be changed to accommodate the legend markers and legend text. The setLegendRect() method can be used for this purpose.

Syntax:

setLegendOrient(value);
value = getLegendOrient();

where:

value

Can be one of the following:

0 for vertical

1 for horizontal

2 for auto (determined by height or width of Legend Rectangle). This value is the default.

Example:

setDepthAngle(0);
setDepthRadius(0);
setFootnoteDisplay(false);
setSubtitleDisplay(false);
setTitleDisplay(false);
setLegendAutomatic(false);  setLegendOrient(0);
setLegendRect(new Rectangle(-16340,-2478,5948,17550));

bar graph

Note: LegendAutomatic must be set to false.


WebFOCUS