Data Property (Series)
Gets or sets a DataTable, DataSet, DataView, XML file name, XML string, or an object that implement IEnumerable, ArrayList or HashTable used to generate a SeriesCollection.
Syntax
Remarks
When not connecting to a database directly using ConnectionString and SqlStatement, this property can be used to supply objects with data.
Example
Adds data based on the myDataTable .
Chart.Series.Data = myDataTable;
Chart.Series.DataFields = "XAxis=FirstCol,YAxis=SecondCol";
Chart.SeriesCollection.Add();
Chart.Series.Data = myDataTable
Chart.Series.DataFields = "FirstCol=XAxis,SecondCol=YAxis"
Chart.SeriesCollection.Add()
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
Series Class
Series Members
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
DataEngine Class
Data Property