SeriesCollection.Add Method (String)
.NET Framework (current version)
Adds a Series object with the given name to the end of the collection.
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Parameters
- name
-
Type:
System.String
The name of the Series to be added.
Return Value
Type: System.Web.UI.DataVisualization.Charting.SeriesThe new Series object appended to the collection. .
Items are always added as the last item in the collection.
The name argument refers to the Name property of the object being added.
Note If you use this method to add Series objects to the SeriesCollection class, the associated DataPoint objects of the newly added Series object cannot have more than one Y-value per data point. To add a series that can handle multiple Y-values per data point, use the M:System.Web.UI.DataVisualization.Charting.SeriesCollection.Add(System.String, System.Int32) definition of this overloaded method.
.NET Framework
Available since 4.0
Available since 4.0
Show: