Chart.DataBindCrossTable 方法

定义

数据将图表绑定到表,其中具有在给定列中为每个唯一值所创建一个序列。

重载

DataBindCrossTable(IEnumerable, String, String, String, String)

数据将图表绑定到表,其中具有在给定列中为每个唯一值所创建一个序列。

DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder)

数据将图表绑定到表,其中具有在给定列中为每个唯一值所创建一个序列。

DataBindCrossTable(IEnumerable, String, String, String, String)

数据将图表绑定到表,其中具有在给定列中为每个唯一值所创建一个序列。

public:
 void DataBindCrossTable(System::Collections::IEnumerable ^ dataSource, System::String ^ seriesGroupByField, System::String ^ xField, System::String ^ yFields, System::String ^ otherFields);
public void DataBindCrossTable (System.Collections.IEnumerable dataSource, string seriesGroupByField, string xField, string yFields, string otherFields);
member this.DataBindCrossTable : System.Collections.IEnumerable * string * string * string * string -> unit
Public Sub DataBindCrossTable (dataSource As IEnumerable, seriesGroupByField As String, xField As String, yFields As String, otherFields As String)

参数

dataSource
IEnumerable

由图表绑定数据的数据源。

seriesGroupByField
String

用于将数据分组到序列的字段名称。

xField
String

X 值的字段名称。

yFields
String

以逗号分隔的 Y 值的字段名称列表。

otherFields
String

可以绑定的其他数据点属性。

注解

序列将自动添加到图表中,具体取决于数据源的给定 seriesGroupByField 列中的唯一值数;换句话说,序列的创建取决于列的分组。

数据源可以是 OleDbDataReaderSqlDataReader 也可以是 DataView 对象。 请注意,可以使用实现 IEnumerable 接口的所有集合。

可以绑定 X 和 Y 值以外的其他数据点属性。 格式为:PointProperty=Field[{Format}] [,PointProperty= Field[{Format}]]。 例如:“Tooltip=Price{C1},Href=WebSiteName”。

这些数据点属性包括:

适用于

DataBindCrossTable(IEnumerable, String, String, String, String, PointSortOrder)

数据将图表绑定到表,其中具有在给定列中为每个唯一值所创建一个序列。

public:
 void DataBindCrossTable(System::Collections::IEnumerable ^ dataSource, System::String ^ seriesGroupByField, System::String ^ xField, System::String ^ yFields, System::String ^ otherFields, System::Windows::Forms::DataVisualization::Charting::PointSortOrder sortingOrder);
public void DataBindCrossTable (System.Collections.IEnumerable dataSource, string seriesGroupByField, string xField, string yFields, string otherFields, System.Windows.Forms.DataVisualization.Charting.PointSortOrder sortingOrder);
member this.DataBindCrossTable : System.Collections.IEnumerable * string * string * string * string * System.Windows.Forms.DataVisualization.Charting.PointSortOrder -> unit
Public Sub DataBindCrossTable (dataSource As IEnumerable, seriesGroupByField As String, xField As String, yFields As String, otherFields As String, sortingOrder As PointSortOrder)

参数

dataSource
IEnumerable

由图表绑定数据的数据源。

seriesGroupByField
String

用于将数据分组到序列的字段名称。

xField
String

X 值的字段名称。

yFields
String

以逗号分隔的 Y 值的字段名称列表。

otherFields
String

可以绑定的其他数据点属性。

sortingOrder
PointSortOrder

序列的顺序将按组字段值进行排序。

注解

序列将自动添加到图表中,具体取决于数据源的给定 seriesGroupByField 列中的唯一值数;换句话说,序列的创建取决于列的分组。

数据源可以是 OleDbDataReaderSqlDataReader 也可以是 DataView 对象。

请注意,可以使用实现 IEnumerable 接口的所有集合。

可以绑定 X 和 Y 值以外的其他数据点属性。 格式为:PointProperty=Field[{Format}] [,PointProperty= Field[{Format}]]。 例如:“Tooltip=Price{C1},Href=WebSiteName”。

这些数据点属性包括:

适用于