See Also

ChartArea Class  | ChartArea Members

Language

Visual Basic

C#

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

Series Property

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

[Visual Basic]
Public Property Series As Series
[C#]
public Series Series {get; set;}

Example

[C#] 

            [C#] 
//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();

[C#] 

            [Visual Basic] 
'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

ChartArea Class  | ChartArea Members

 

 


2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.