The Chart control supports data binding to a variety of data sources. A data source is any element that serves as a source of data. When
performing data binding a connection is established with the data source,
and data is then retrieved from the source.
The following lists the possible data sources that can be bound to the
Chart:
-
DataView object.
-
Data Reader objects (XML, SQL, OleDB).
-
DataSet object.
-
DataRow object.
-
DataColumn object.
-
Array object.
-
List object.
-
SqlCommand object (databinding using DataSource property only).
-
OleDbCommand object (databinding using DataSource property only).
-
SqlDataAdapter object (databinding using DataSource property only).
-
OleDbDataAdapter object (databinding using DataSource property only).
-
All IEnumerable objects.
Note that the type of data binding used may affect the availability of
some data sources.