Series Property (Chart)
Gets or sets a series which is added to the chart's main SeriesCollection when the Chart.SeriesCollection.Add() method is invoked.
Syntax
Example
//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();
'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()
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