Chart.DataBindTable(IEnumerable, String) Chart.DataBindTable(IEnumerable, String) Chart.DataBindTable(IEnumerable, String) Method

Definition

Creates and binds series data to the specified data table, and optionally populates multiple x-values.

public System.Web.Helpers.Chart DataBindTable (System.Collections.IEnumerable dataSource, string xField = null);
member this.DataBindTable : System.Collections.IEnumerable * string -> System.Web.Helpers.Chart
Public Function DataBindTable (dataSource As IEnumerable, Optional xField As String = null) As Chart
Parameters
dataSource
IEnumerable IEnumerable IEnumerable

The chart data source. This can be can be any IEnumerable object.

xField
String String String

The name of the table column used for the series x-values.

Returns

The chart.

Applies to