Creates and initializes a new instance of the Series class with the specified name and maximum number of Y-values.
Data Series object constructor.
Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal name As String, _ ByVal yValues As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- name
-
The name of the Series object that will be created.
Name of the data series. - yValues
-
The maximum number of Y-values of the DataPoint objects that belong to this series.
Number of y value(s) per data point.
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 that is set by yValues parameter. If a data point is added that uses 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.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family