LegendDisplay

This property enables or disables drawing of the legend box. It also affects all legend box objects (legend text, legend marker, and legend line). When the legend box is not drawn, neither are its components. Legends are not displayed for histogram graphs or any graph that is colored by group (ColorMode=2).

Syntax:

setLegendDisplay(boolean);
boolean = getLegendDisplay();

where:

boolean

Can be one of the following:

true shows the legend.

false does not show the legend. This is the default value.

Example:

setDepthRadius(0);
   setLegendDisplay(true);

bar graph

setLegendDisplay(false);

bar graph

See LegendAutomatic, LegendMarkerPosition, LegendReverse, UseSeriesShapes, setLegendRect().


WebFOCUS