Series

A Series is a collection of values used to display an individual graph. A Series is added to the Plot Area where it will be displayed. There are six different groups of Series corresponding to the six types of Charts. Some Series groups have multiple types.

Area Series

An Area chart has two types of series:

DateTimeAreaSeries

A DateTimeAreaSeries is a collection of values each corresponding to a particular point in time that will be plotted as an Area chart. A DateTimeAreaSeries uses a DateTimeXAxis as the XAxis type and a NumericYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The following code shows how to create and add values to a DateTimeAreaSeries.

DateTimeAreaSeries areaSeries = new DateTimeAreaSeries("Website A");
areaSeries.Values.Add(521, new DateTime(2004, 1, 1));
areaSeries.Values.Add(969, new DateTime(2004, 1, 2));
areaSeries.Values.Add(452, new DateTime(2004, 1, 3));
areaSeries.Values.Add(347, new DateTime(2004, 1, 4));        
Dim MyAreaSeries As New DateTimeAreaSeries("Website A")
MyAreaSeries.Values.Add(521, New Date(2004, 1, 1))
MyAreaSeries.Values.Add(969, New Date(2004, 1, 2))
MyAreaSeries.Values.Add(452, New Date(2004, 1, 3))
MyAreaSeries.Values.Add(347, New Date(2004, 1, 4))  

IndexedAreaSeries

An IndexedAreaSeries is a collection of values to be plotted as an Area chart in indexed order. An IndexedAreaSeries uses an IndexedXAxis as the XAxis type and a NumericYAxis as the YAxis type.

The following code shows how to create and add values to an IndexedAreaSeries.

IndexedAreaSeries areaSeries = new IndexedAreaSeries("Website A");      
areaSeries.Values.Add(521, 0);
areaSeries.Values.Add(969, 1);
areaSeries.Values.Add(451, 2);
areaSeries.Values.Add(347, 3);        
Dim MyAreaSeries As IndexedAreaSeries = New IndexedAreaSeries("Website A")
MyAreaSeries.Values.Add(521, 0)
MyAreaSeries.Values.Add(969, 1)
MyAreaSeries.Values.Add(452, 2)
MyAreaSeries.Values.Add(347, 3)  

Bar Series

A Bar chart has two types of series, DateTimeBarSeries and IndexedBarSeries.

DateTimeBarSeries

A DateTimeBarSeries is a collection of values each corresponding to a particular point in time that will be plotted as a Bar chart. A DateTimeBarSeries uses a NumericXAxis as the XAxis type and a DateTimeYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The below code shows how to create and add values to a DateTimeBarSeries.

DateTimeBarSeries barSeries = new DateTimeBarSeries("Website A");
barSeries.Values.Add(521, new DateTime(2004, 1, 1));
barSeries.Values.Add(969, new DateTime(2004, 1, 2));
barSeries.Values.Add(452, new DateTime(2004, 1, 3));
barSeries.Values.Add(347, new DateTime(2004, 1, 4));        
Dim MyBarSeries As New DateTimeBarSeries("Website A")
MyBarSeries.Values.Add(521, New Date(2004, 1, 1))
MyBarSeries.Values.Add(969, New Date(2004, 1, 2))
MyBarSeries.Values.Add(452, New Date(2004, 1, 3))
MyBarSeries.Values.Add(347, New Date(2004, 1, 4))      

IndexedBarSeries

An IndexedBarSeries is a collection of values to be plotted as a Bar chart in indexed order. An IndexedBarSeries uses a NumericXAxis as the XAxis type and a IndexedYAxis as the YAxis type.

The following code shows how to create and add values to an IndexedBarSeries.

IndexedBarSeries barSeries = new IndexedBarSeries("Website A");      
barSeries.Values.Add(521, 0);
barSeries.Values.Add(969, 1);
barSeries.Values.Add(451, 2);
barSeries.Values.Add(347, 3);       
Dim MyBarSeries As IndexedBarSeries = New IndexedBarSeries("Website A")
MyBarSeries.Values.Add(521, 0)
MyBarSeries.Values.Add(969, 1)
MyBarSeries.Values.Add(452, 2)
MyBarSeries.Values.Add(347, 3)  

Line Series

A Line chart has two types of series:

DateTimeLineSeries

A DateTimeLineSeries is a collection of values each corresponding to a particular point in time that will be plotted as a Line chart. A DateTimeLineSeries uses a DateTimeXAxis as the XAxis type and a NumericYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The following code shows how to create and add values to the DateTimeLineSeries.

DateTimeLineSeries lineSeries = new DateTimeLineSeries("Website A");
lineSeries.Values.Add(521, new DateTime(2004, 1, 1));
lineSeries.Values.Add(969, new DateTime(2004, 1, 2));
lineSeries.Values.Add(452, new DateTime(2004, 1, 3));
lineSeries.Values.Add(347, new DateTime(2004, 1, 4));        
Dim MyLineSeries As New DateTimeLineSeries("Website A")
MyLineSeries.Values.Add(521, New Date(2004, 1, 1))
MyLineSeries.Values.Add(969, New Date(2004, 1, 2))
MyLineSeries.Values.Add(452, New Date(2004, 1, 3))
MyLineSeries.Values.Add(347, New Date(2004, 1, 4))      

IndexedLineSeries

An IndexedLineSeries is a collection of values to be plotted as a Line chart in indexed order. An IndexedLineSeries uses an IndexedXAxis as the XAxis type and a NumericYAxis as the YAxis type.

The following code shows how to create and add values to an IndexedLineSeries.

IndexedLineSeries lineSeries = new IndexedLineSeries("Website A");      
lineSeries.Values.Add(521, 0);
lineSeries.Values.Add(969, 1);
lineSeries.Values.Add(451, 2);
lineSeries.Values.Add(347, 3);      
Dim MyLineSeries As IndexedLineSeries = New IndexedLineSeries("Website A")
MyLineSeries.Values.Add(521, 0)
MyLineSeries.Values.Add(969, 1)
MyLineSeries.Values.Add(452, 2)
MyLineSeries.Values.Add(347, 3)      

Column Series

A Column chart has two types of series, DateTimeColumnSeries and IndexedColumnSeries.

DateTimeColumnSeries

A DateTimeColumnSeries is a collection of values each corresponding to a particular point in time that will be plotted as a Column chart. A DateTimeColumnSeries uses a DateTimeXAxis as the XAxis type and a NumericYAxis as the YAxis type. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The following code shows how to create and add values to a DateTimeColumnSeries.

DateTimeColumnSeries columnSeries = new DateTimeColumnSeries("Website A");
columnSeries.Values.Add(521, new DateTime(2004, 1, 1));
columnSeries.Values.Add(969, new DateTime(2004, 1, 2));
columnSeries.Values.Add(452, new DateTime(2004, 1, 3));
columnSeries.Values.Add(347, new DateTime(2004, 1, 4));       
Dim MyColumnSeries As New DateTimeColumnSeries("Website A")
MyColumnSeries.Values.Add(521, New Date(2004, 1, 1))
MyColumnSeries.Values.Add(969, New Date(2004, 1, 2))
MyColumnSeries.Values.Add(452, New Date(2004, 1, 3))
MyColumnSeries.Values.Add(347, New Date(2004, 1, 4))      

IndexedColumnSeries

An IndexedColumnSeries is a collection of values to be plotted as a Column chart in indexed order. An IndexedColumnSeries uses an IndexedXAxis as the XAxis type and a NumericYAxis as the YAxis type.

The following code shows how to create and add values to an IndexedColumnSeries.

IndexedColumnSeries columnSeries = new IndexedColumnSeries("Website A");      
columnSeries.Values.Add(521, 0);
columnSeries.Values.Add(969, 1);
columnSeries.Values.Add(451, 2);
columnSeries.Values.Add(347, 3);        
Dim MyColumnSeries As IndexedColumnSeries = New IndexedColumnSeries("Website A")
MyColumnSeries.Values.Add(521, 0)
MyColumnSeries.Values.Add(969, 1)
MyColumnSeries.Values.Add(452, 2)
MyColumnSeries.Values.Add(347, 3)      

XYScatter Series

An XYScatter Series is a collection of values to be plotted as an XYScatter chart. A XYScatterSeries uses a NumericXAxis as the XAxis type and a NumericYAxis as the YAxis type.

The following code shows how to create and add values to a XYScatterSeries.

XYScatterSeries xyScatterSeries = new XYScatterSeries("Website A");
xyScatterSeries.Values.Add(59,10);
xyScatterSeries.Values.Add(75,15);
xyScatterSeries.Values.Add(92,25);
xyScatterSeries.Values.Add(63,30);
xyScatterSeries.Values.Add(45,43);        
Dim MyXYScatterSeries As XYScatterSeries = New XYScatterSeries("Website A")
MyXYScatterSeries.Values.Add(59, 10)
MyXYScatterSeries.Values.Add(75, 15)
MyXYScatterSeries.Values.Add(92, 25)
MyXYScatterSeries.Values.Add(63, 30)
MyXYScatterSeries.Values.Add(45, 43)      

Pie Series

A Pie Series is a collection of values to be plotted as a Pie chart. A PieSeries does not use any XAxis or YAxis.

The following code shows how to create and add values to a PieSeries.

PieSeries pieSeries = new PieSeries();       
pieSeries.Elements.Add(13,"Product A");
pieSeries.Elements.Add(13,"Product B");
pieSeries.Elements.Add(13,"Product C");
pieSeries.Elements.Add(13,"Product D");
pieSeries.Elements.Add(13,"Product E");        
Dim MyPieSeries As PieSeries = New PieSeries()
MyPieSeries.Elements.Add(13, "Product A")
MyPieSeries.Elements.Add(13, "Product B")
MyPieSeries.Elements.Add(13, "Product C")
MyPieSeries.Elements.Add(13, "Product D")
MyPieSeries.Elements.Add(13, "Product E")      

In this topic