dotnetCHARTING Send comments on this topic.
Series Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : Series Property


Gets or sets a series which is added to the chart's main SeriesCollection when the Chart.SeriesCollection.Add() method is invoked.

Syntax

Visual Basic (Declaration)  
Public Property Series As Series
Visual Basic (Usage) Copy Code
Dim instance As Chart
Dim value As Series
 
instance.Series = value
 
value = instance.Series
C#  
public Series Series {get; set;}

Example

C# Copy Code
//Adding series programatically
Chart.Series.Name="Vancouver";
Chart.Series.Type = SeriesType.Cylinder;
Chart.Series.Element  =
new Element("Mon",2);
Chart.Series.Elements.Add();
Chart.Series.Element =
new Element("Tue",4);
Chart.Series.Elements.Add();
Chart.Series.Element =
new Element("Wed",5);
Chart.Series.Elements.Add();
Chart.Series.Element =
new Element("Thr",6);
Chart.Series.Elements.Add();
Chart.Series.Element =
new Element("Fri",5);
Chart.Series.Elements.Add();
Chart.SeriesCollection.Add();
    
Visual Basic Copy Code
'Adding series programatically
Chart.Series.Name="Vancouver"
Chart.Series.Type = SeriesType.Cylinder
Chart.Series.Element = new Element("Mon",2)
Chart.Series.Elements.Add()
Chart.Series.Element = new Element("Tue",4)
Chart.Series.Elements.Add()
Chart.Series.Element = new Element("Wed",5)
Chart.Series.Elements.Add()
Chart.Series.Element = new Element("Thr",6)
Chart.Series.Elements.Add()
Chart.Series.Element = new Element("Fri",5)
Chart.Series.Elements.Add()
Chart.SeriesCollection.Add()

See Also