Exports the data for one chart series to a DataSet object.
Export series data into the DataSet object.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function ExportSeriesValues( _ ByVal series As Series _ ) As DataSet |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
- series
- The Series object that will have its data point values exported.
Series which should be exported.
Return Value
A DataSet object that stores the chart series as a DataTable object. Each data point is stored as a DataRow object.
Data set object with series data.
Visual Basic | Copy Code |
---|---|
Imports Dundas.Charting.WinControl |
Exports the data of the series as a returned DataSet object. A DataTable object is created for the series and is added to the Tables collection of the DataSet (the DataTable object will have the same name as the series it represents).
Every data point in a series is stored as a DataRow object that is inserted into the Rows collection of the applicable DataTable object.
The DataTable object will have two or more columns (represented by DataColumn objects): one column for the X-value of data points and one column per Y-value. All DataColumn objects are named for the value that they represent (e.g. "X", "Y", "Y2", etc.). The column types depends on each Series object's XValueType and YValueType properties. DateTime value types are stored as DateTime columns, String value types are stored as String columns, and all other types are stored as Double columns. Note that a String value type can only be used for the X-values of a chart's data points, and if this is the case it is the AxisLabel property of each data point that determines the value stored.
Empty points by default are not exported. To export empty data points set the IgnoreEmptyPoints property to false (these points will then be stored as DBNull objects in the DataRow object).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family