DataPointCollection.DataBindY Method (IEnumerable[])
Data binds the Y-value(s) of the collection's data points to the first column of the specified data source(s).
Assembly: System.Web.DataVisualization (in System.Web.DataVisualization.dll)
Parameters
- yValue
-
Type:
System.Collections.IEnumerable[]
One or more comma-separated IEnumerable<'T> data sources.
This method binds the Y-value(s) of the data points in the collection to the first column of the specified data source(s).
To bind Y-values to a data source column that is not the first available column, use the DataBindY method.
You can bind several Y-values by specifying multiple data sources, using the yValue parameter. Note that the first available column in each data source will be used for each data point's successive Y-values. For example, the first column of the first IEnumerable<'T> data source will be bound to the first Y-value of data points, the first column of the second IEnumerable<'T> data source will be bound to the second Y-value of data points, and so forth.
If Y-values are not provided by the data source, or if the wrong number of values are provided, an exception will be thrown.
The following is a list of objects that you can use as the data source parameter:
The following is a list of objects that you can use as the data source:
DataView
Data readers (SQL, OleDB)
Arrays
Lists
All other objects that use the IEnumerable<'T> interface.
Available since 4.0