HasLegend Property

Applies To

Chart object.

Description

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

See Also

Legend property.

Example

This example turns on the legend for the chart and then sets the legend font color to blue.

With myChart
    .HasLegend = True
    .Legend.Font.ColorIndex = 5
End With