Version

DataLabelPosition Enumeration

Constants which define the location at which a DataLabel is positioned.
Syntax
'Declaration
 
Public Enum DataLabelPosition 
   Inherits System.Enum
public enum DataLabelPosition : System.Enum 
Members
MemberDescription
AboveThe label is positioned above the associated data point.
BelowThe label is positioned below the associated data point.
BestFitThe label is positioned where it best fits with relation to the associated pie slice.
CenterThe label is centered with respect to the associated data point.
CustomThe label's position is explicitly defined via the ChartTextAreaBase.Left and ChartTextAreaBase.Top properties.
DefaultThe label position is not specified, and is determined automatically by Excel.
InsideBaseThe label's left edge coincides with the left edge of the series bar/line.
InsideEndThe label's right edge coincides with the right edge of the series bar/line.
LeftThe label is positioned to the left of the associated data point.
OutsideEndThe label's left edge coincides with the right edge of the series bar/line.
RightThe label is positioned to the right of the associated data point.
Remarks

Note that which constants in this enumeration are applicable is dependent on the chart type.

The following table lists the supported constants for each chart type.

Chart Type Supported Constant(s)
3D charts (except pie/doughnut) Custom
Area, Radar Custom
Surface Data labels are not supported
Bar/Column (stacked) Center, InsideEnd, InsideBase
Bar/Column (clustered) Center, InsideEnd, InsideBase, OutsideEnd
Line/Scatter/Bubble Center, Left, Right, Above, Below
Pie/Doughnut Center, InsideEnd, OutsideEnd, BestFit

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also