Export (0) Print
Expand All

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)

public Chart DataBindCrossTable(
	IEnumerable dataSource,
	string groupByField,
	string xField,
	string yFields,
	string otherFields,
	string pointSortOrder
)

Parameters

dataSource
Type: System.Collections.IEnumerable
The chart data source.
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.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2014 Microsoft