Xceed Chart for WinForms v4.4 Documentation
DataLabels Property
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Series Class : DataLabels Property
Gives you access to the DataLabels object controlling the appearance of the data point labels.
Syntax
'Declaration
 
<CategoryAttribute("Attributes")>

<DescriptionAttribute("Controls the appearance of the data points labels.")>

Public Property DataLabels As DataLabels
'Usage
 
Dim instance As Series

Dim value As DataLabels

 

instance.DataLabels = value

 

value = instance.DataLabels
[Category("Attributes")]

[Description("Controls the appearance of the data points labels.")]

public DataLabels DataLabels {get; set;}
Remarks
The data point data labels are explanatory texts visualized for the series data points. The DataLabels class controls their appearance, format, alignment and other related features.
Example
The following code will display the value and the the label on every second data point.
series.DataLabels.Mode = DataLabelsMode.Every

series.DataLabels.Every = 2

series.DataLabels.Format = "&lt;value&gt; &lt;label&gt;"
series.DataLabels.Mode = DataLabelsMode.Every;

series.DataLabels.Every = 2;

series.DataLabels.Format = "&lt;value&gt; &lt;label&gt;";
Requirements

Target Platforms: Windows 7, 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

Reference

Series Class
Series Members
DataLabels Class