Dundas Chart for ASP.NET
ExportSeriesValues(Series) Method
See Also  Example Send comments on this topic.
Dundas.Charting.WebControl 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

This example demonstrates how to export all chart series to a DataSet object.  We assume that a chart has been added at design-time.
Visual Basic Copy Code
Imports Dundas.Charting.WebControl<CRLF> ...<CRLF><CRLF>' Exports a series data in the chart's Series collection. <CRLF>Dim mySeriesData As DataSet = Chart1.DataManipulator.ExportSeriesValues(Chart1.Series("Series1"))
C# Copy Code
using Dundas.Charting.WebControl; <CRLF>  ... <CRLF> <CRLF>// Export a series in the chart's Series collection. <CRLF>Dim allSeriesData 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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.