HasLegend Property

Microsoft Office Web Components Visual Basic

True if the specified chart has a legend. Read/write Boolean.

expression.HasLegend

expression    Required. An expression that returns a ChChart object.

Example

This example sets the specified chart to have a legend.

ChartSpace1.Charts(0).HasLegend = True