DataLabels Collection Object

Description

A collection of all the DataLabel objects for the specified series. Each DataLabel object represents a data label for a point or trendline. For a series without definable points (such as an area series), the DataLabels collection contains a single data label.

Accessors

Use the DataLabels method with an argument to access a single member of the collection or without an argument to access the entire collection at once. The following example sets the number format for all data labels on series one.


With Worksheets("sheet5").ChartObjects(1).Chart.SeriesCollection(1)
    .HasDataLabels = True
    .DataLabels.NumberFormat = "0.00"
End With

Properties

Application Property, AutoText Property, Border Property, Count Property, Creator Property, Font Property, HorizontalAlignment Property, Interior Property, Name Property, NumberFormat Property, NumberFormatLinked Property, Orientation Property, Parent Property, Shadow Property, ShowLegendKey Property, Type Property, VerticalAlignment Property.

Methods

Delete Method, Item Method, Select Method.