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


Xceed.Chart.Core.v4.4 Assembly > Xceed.Chart.Core Namespace > Series Class > Add Method : Add(Double,String,FillEffect) Method
the value to be inserted in the Values data series
the string to be inserted in the Labels data series
the FillEffect to be inserted in the Appearance.FillEffects data series
Adds new values in the Values, Labels and FillEffects.
Syntax
'Declaration
 
Public Overloads Sub Add( _

   ByVal dValue As Double, _

   ByVal sLabel As String, _

   ByVal fe As FillEffect _

) 
'Usage
 
Dim instance As Series

Dim dValue As Double

Dim sLabel As String

Dim fe As FillEffect

 

instance.Add(dValue, sLabel, fe)
public void Add( 

   double dValue,

   string sLabel,

   FillEffect fe

)

Parameters

dValue
the value to be inserted in the Values data series
sLabel
the string to be inserted in the Labels data series
fe
the FillEffect to be inserted in the Appearance.FillEffects data series
Example
The following example creates a bar chart with labels and different colors.
Dim bar As BarSeries =  Chart.Series.Add(SeriesType.Bar) 

bar.Add(23, "Bar1", New FillEffect(Color.Chocolate))

bar.Add(67, "Bar2", New FillEffect(Color.Blue))

bar.Add(78, "Bar3", New FillEffect(Color.Coral))

bar.DataLabels.Format = "<value> <label>"

bar.Appearance.FillMode = AppearanceFillMode.DataPoints
BarSeries bar = Chart.Series.Add(SeriesType.Bar);

bar.Add(23, "Bar1", new FillEffect(Color.Chocolate));

bar.Add(67, "Bar2", new FillEffect(Color.Blue));

bar.Add(78, "Bar3", new FillEffect(Color.Coral));

bar.DataLabels.Format = "<value> <label>";

bar.Appearance.FillMode = AppearanceFillMode.DataPoints;
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