HasLegend Property Example

This example sets the specified chart to have a legend.

ChartSpace1.Charts(0).HasLegend = True