Legend Property

Microsoft Graph Visual Basic

Legend Property

       

Returns a Legend object that represents the legend for the specified chart. Read-only.

Example

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

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