See Also

Series Class  | Series Members  | DataEngine Class  | DataEngine Class

Language

Visual Basic

C#

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

Data Property

Gets or sets a DataTable, DataSet, DataView, OleDbDataReader, SqlDataReader, IDataReader, XML file name, or an object that implement IEnumerable, ArrayList or HashTable used to generate a SeriesCollection.

[Visual Basic]
Public Property Data As Object
[C#]
public object Data {get; set;}

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 .

[C#] 

Chart.Series.Data = myDataTable; 
Chart.Series.DataFields = "XAxis=FirstCol,YAxis=SecondCol"; 
Chart.SeriesCollection.Add();

[Visual Basic] 

Chart.Series.Data = myDataTable
Chart.Series.DataFields = "FirstCol=XAxis,SecondCol=YAxis"
Chart.SeriesCollection.Add()

See Also

Series Class  | Series Members  | DataEngine Class  | DataEngine Class

 

 


2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.