Chart.DataBindCrossTable 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將圖表繫結至資料表,在資料表中,會為資料行中每一個唯一值建立數列。
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
參數
- dataSource
- IEnumerable
圖表資料來源。
- groupByField
- String
用來將資料分組成數列之資料行的名稱。
- xField
- String
X 值資料行的名稱。
- yFields
- String
Y 值資料行名稱清單 (以逗號分隔)。
- otherFields
- String
其他可以繫結的資料點屬性。
- pointSortOrder
- String
數列會據以排序的順序。 預設值為 "Ascending"。
傳回
圖表。