Represents a label.
Label class contains properties which define visual appearance of the axis labels, their interval and position. This class is also responsible for calculating the position of all the labels and drawing them.
Visual Basic (Declaration) | |
---|---|
Public Class Label Inherits ChartElement |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class Label : ChartElement |
This class represents a chart label, and is exposed as:
- CustomLabel objects (custom labels displayed along an axis);
- as data point labels using the Label property of DataPoint and Series objects;
- and as axis labels of DataPoint and Series objects using the AxisLabel property (axis labels displayed on a per series or per data point basis).
There are two axis label rows, and the labels along the first row are generated one of three ways: automatically from the axis scale; from Series and/or DataPoint objects; or CustomLabels. For further details see the Labeling Methods topic. Note that if one CustomLabel object is used for the first label row then no axis labels will be automatically generated.
The second axis label row can only be comprised of custom labels, and this row is generally used to group together labels along the first row.
Axis labels can:
-
Be offset to fit more text in a label row.
-
Have custom labelling intervals.
-
Use custom formatting (also applies to data point labels).
-
And can also be fitted automatically.
Many of the properties of this class deal with entire rows of axis labels (e.g. the OffsetLabels property enables/disables offsets for an entire row of axis labels). However, custom labels are drawn on a label-by-label basis.
Refer to the numerous "How To" articles in the "See Also" section below to find out how to accomplish a specific labelling task.
System.Object
Dundas.Charting.WinControl.ChartElement
Dundas.Charting.WinControl.Label
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family