HasPercentage Property Example

This example adds data labels showing percentage value to a series. Note that Charts(0) must refer to a pie, doughnut, or stacked chart.

Set dl = ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection.Add
dl.HasPercentage = True