Chart.DataBindCrossTable Method

Binds a chart to a data table, where one series is created for each unique value in a column.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public Function DataBindCrossTable ( _
    dataSource As IEnumerable, _
    groupByField As String, _
    xField As String, _
    yFields As String, _
    otherFields As String, _
    pointSortOrder As String _
) As Chart
'Usage
Dim instance As Chart 
Dim dataSource As IEnumerable 
Dim groupByField As String 
Dim xField As String 
Dim yFields As String 
Dim otherFields As String 
Dim pointSortOrder As String 
Dim returnValue As Chart 

returnValue = instance.DataBindCrossTable(dataSource, _
    groupByField, xField, yFields, otherFields, _
    pointSortOrder)
public Chart DataBindCrossTable(
    IEnumerable dataSource,
    string groupByField,
    string xField,
    string yFields,
    string otherFields,
    string pointSortOrder
)
public:
Chart^ DataBindCrossTable(
    IEnumerable^ dataSource, 
    String^ groupByField, 
    String^ xField, 
    String^ yFields, 
    String^ otherFields, 
    String^ pointSortOrder
)
member DataBindCrossTable : 
        dataSource:IEnumerable * 
        groupByField:string * 
        xField:string * 
        yFields:string * 
        otherFields:string * 
        pointSortOrder:string -> Chart
public function DataBindCrossTable(
    dataSource : IEnumerable, 
    groupByField : String, 
    xField : String, 
    yFields : String, 
    otherFields : String, 
    pointSortOrder : String
) : Chart

Parameters

  • groupByField
    Type: System.String
    The name of the column that is used to group data into the series.
  • xField
    Type: System.String
    The name of the column for x-values.
  • yFields
    Type: System.String
    A comma-separated list of names of the columns for y-values.
  • otherFields
    Type: System.String
    Other data point properties that can be bound.
  • pointSortOrder
    Type: System.String
    The order in which the series will be sorted. The default is "Ascending".

Return Value

Type: System.Web.Helpers.Chart
The chart.

See Also

Reference

Chart Class

System.Web.Helpers Namespace