Exports the data for one or more series to a DataSet object.
Export series data into the DataSet object.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function ExportSeriesValues( _ ByVal seriesNames As String _ ) As DataSet |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public DataSet ExportSeriesValues( string seriesNames ) |
Parameters
- seriesNames
- The name(s) of the series that will have their data point values exported. To specify multiple series use a comma-separated list.
The name(s) of the series that will have their data point values exported. To specify multiple series use a comma-separated list.
Comma separated series names which should be exported.
Return Value
A DataSet object that stores each 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 each series' data as a returned DataSet object. A DataTable object is created for each series and is added to the Tables collection of the DataSet (each 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.
Each 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