Visual Basic: MSChart Control
ShowLegend Property
See Also Example Applies To
Returns or sets a value that indicates whether a legend is visible for a chart.
Syntax
*object.*ShowLegend [ = boolean]
The ShowLegend property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
boolean | A Boolean expression that controls whether a legend is displayed on the chart, as described in Settings. |
Settings
The settings for boolean are:
Setting | Description |
True | The legend appears on the chart in the position indicated by the Location object. |
False | (Default) The legend is not displayed on the chart. The default legend location is to the right side of the chart. |
Remarks
The default legend location is to the right side of the chart.