HasCategoryName Property Example

This example causes the data labels for the specified series to display their category and series names.

Set dl = ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection(0)
dl.HasCategoryName = True
dl.HasSeriesName = True