Chart.DataBindCrossTable Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Binds a chart to a data table, where one series is created for each unique value in a column.
public System.Web.Helpers.Chart DataBindCrossTable (System.Collections.IEnumerable dataSource, string groupByField, string xField, string yFields, string otherFields = default, string pointSortOrder = "Ascending");
member this.DataBindCrossTable : System.Collections.IEnumerable * string * string * string * string * string -> System.Web.Helpers.Chart
Public Function DataBindCrossTable (dataSource As IEnumerable, groupByField As String, xField As String, yFields As String, Optional otherFields As String = null, Optional pointSortOrder As String = "Ascending") As Chart
Parameters
- dataSource
- IEnumerable
The chart data source.
- groupByField
- String
The name of the column that is used to group data into the series.
- xField
- String
The name of the column for x-values.
- yFields
- String
A comma-separated list of names of the columns for y-values.
- otherFields
- String
Other data point properties that can be bound.
- pointSortOrder
- String
The order in which the series will be sorted. The default is "Ascending".
Returns
The chart.