Επεξεργασία

Κοινή χρήση μέσω


Series Constructors

Definition

Initializes a new instance of the Series class.

Overloads

Series()

Initializes a new instance of the Series class.

Series(String)

Initializes a new instance of the Series class with the specified series name.

Series(String, Int32)

Initializes a new instance of the Series class with the specified name and maximum number of Y values.

Series()

Initializes a new instance of the Series class.

public:
 Series();
public Series ();
Public Sub New ()

Applies to

Series(String)

Initializes a new instance of the Series class with the specified series name.

public:
 Series(System::String ^ name);
public Series (string name);
new System.Web.UI.DataVisualization.Charting.Series : string -> System.Web.UI.DataVisualization.Charting.Series
Public Sub New (name As String)

Parameters

name
String

The name of the Series object that will be created. This must be a unique name, otherwise an exception will be thrown.

Remarks

This constructor can be used to create a new instance of the Series class.

Note

This series is only capable of storing DataPoint objects that have one Y-value. If a data point that has multiple Y-values is added to this series, an exception will be thrown.

To create a series at run time, use the Add method.

Applies to

Series(String, Int32)

Initializes a new instance of the Series class with the specified name and maximum number of Y values.

public:
 Series(System::String ^ name, int yValues);
public Series (string name, int yValues);
new System.Web.UI.DataVisualization.Charting.Series : string * int -> System.Web.UI.DataVisualization.Charting.Series
Public Sub New (name As String, yValues As Integer)

Parameters

name
String

The name of the Series object that will be created.

yValues
Int32

The maximum number of Y-values allowed for the DataPoint objects that belong to this series.

Remarks

Use this constructor to create and initialize a new instance of the Series class.

Important

This series will only be able to store DataPoint objects that do not have more Y-values than the maximum set by the yValues parameter. If you add a data point that has more Y-values than the set maximum, an exception will be thrown.

To create a Series object at run time, the Add and Insert methods of the Series collection property can also be used.

Applies to