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


Gets a SeriesCollection object which represents the data this chart will render.

Syntax

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

Example

C#Copy Code
//Adding series programatically 
Series sr =new Series(); 
sr.Name ="Vancouver"; 
sr.Type = SeriesType.Cylinder; 
Element el= new Element("E 1",2); 
sr.Elements.Add(el); 
Chart.SeriesCollection.Add(sr); 
    
Visual BasicCopy Code
'Adding series programatically
Dim sr As Series =new Series()
sr.Name ="Vancouver"
sr.Type = SeriesType.Cylinder
Dim el As Element = new Element("E 1",2)
sr.Elements.Add(el)
Chart.SeriesCollection.Add(sr)

See Also