Xceed Chart for WinForms v4.4 Documentation
Add(Double,String) Method
Example 


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Series Class > Add Method : Add(Double,String) Method
the value to be inserted in the Values data series
the string to be inserted in the Labels data series
Adds new values in the Values and Labels series.
Syntax
'Declaration
 
Public Overloads Sub Add( _
   ByVal dValue As Double, _
   ByVal sLabel As String _
) 
'Usage
 
Dim instance As Series
Dim dValue As Double
Dim sLabel As String
 
instance.Add(dValue, sLabel)
public void Add( 
   double dValue,
   string sLabel
)

Parameters

dValue
the value to be inserted in the Values data series
sLabel
the string to be inserted in the Labels data series
Example
The following code creates a pie chart with labels.
Dim pie As PieSeries =  Chart.Series.Add(SeriesType.Pie) 
pie.Add(12, "Pie1")
pie.Add(23, "Pie2")
pie.Add(45, "Pie3")
pie.DataLabels.Format = "<value> <label>"
PieSeries pie = Chart.Series.Add(SeriesType.Pie);
pie.Add(12, "Pie1");
pie.Add(23, "Pie2");
pie.Add(45, "Pie3");
pie.DataLabels.Format = "<value> <label>";
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
Overload List