Chart.AddSeries 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供圖表的資料點與數列屬性。
public System.Web.Helpers.Chart AddSeries (string name = default, string chartType = "Column", string chartArea = default, string axisLabel = default, string legend = default, int markerStep = 1, System.Collections.IEnumerable xValue = default, string xField = default, System.Collections.IEnumerable yValues = default, string yFields = default);
member this.AddSeries : string * string * string * string * string * int * System.Collections.IEnumerable * string * System.Collections.IEnumerable * string -> System.Web.Helpers.Chart
Public Function AddSeries (Optional name As String = null, Optional chartType As String = "Column", Optional chartArea As String = null, Optional axisLabel As String = null, Optional legend As String = null, Optional markerStep As Integer = 1, Optional xValue As IEnumerable = null, Optional xField As String = null, Optional yValues As IEnumerable = null, Optional yFields As String = null) As Chart
參數
- name
- String
數列的唯一名稱。
- chartType
- String
數列的圖表類型。
- chartArea
- String
用來繪製資料數列之圖表區域的名稱。
- axisLabel
- String
數列的座標軸標籤文字。
- legend
- String
與圖例相關聯之數列的名稱。
- markerStep
- Int32
資料點標記的細微性。
- xValue
- IEnumerable
要沿著 X 軸繪製的值。
- xField
- String
X 值欄位的名稱。
- yValues
- IEnumerable
要沿著 Y 軸繪製的值。
- yFields
- String
Y 值欄位名稱的清單 (以逗號分隔)。
傳回
圖表。