Dundas Chart for Windows Forms
ExportSeriesValues(Series) Method
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataManipulator Class > ExportSeriesValues Method : ExportSeriesValues(Series) Method


series
The Series object that will have its data point values exported.
Series which should be exported.

Enterprise Edition Only Feature. Exports the data for one chart series to a DataSet object.


Export series data into the DataSet object.

Syntax

Visual Basic (Declaration)  
Public Overloads Function ExportSeriesValues( _
   ByVal series As Series _
) As DataSet
Visual Basic (Usage) Copy Code
Dim instance As DataManipulator
Dim series As Series
Dim value As DataSet
 
value = instance.ExportSeriesValues(series)
C#  
public DataSet ExportSeriesValues( 
   Series series
)

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.

Example

Exporting a series to a DataSet object.
Visual Basic Copy Code
Imports Dundas.Charting.WinControl
...

' Exports a series data
Dim mySeriesData As DataSet = Chart1.DataManipulator.ExportSeriesValues(Chart1.Series("Series1"))

Remarks

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).

Requirements

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

See Also

© 2009 All Rights Reserved.