Series.IsXValueIndexed 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個旗標,指示是否使用資料點索引來表示 X 值。
public:
property bool IsXValueIndexed { bool get(); void set(bool value); };
[System.ComponentModel.Bindable(true)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)]
public bool IsXValueIndexed { get; set; }
[<System.ComponentModel.Bindable(true)>]
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.Attribute)>]
member this.IsXValueIndexed : bool with get, set
Public Property IsXValueIndexed As Boolean
屬性值
true 如果屬於該系列的資料點索引將用於 X 值; false 如果他們不願意的話。 預設值為 false。
- 屬性
備註
序列中的所有資料點皆使用連續索引,若符合 true 此特性,則資料點將依序繪製,無論其對應的 X 值為何。 這表示不會有「缺失」的資料點。
例如,假設序列中有三個(3)個資料點,其 X 值分別為 1、2 和 4。 若此性質為 false,則在 X 軸位置會缺少一個標記為「3」的資料點。 然而,若將此屬性設為 true,三個資料點會依序繪製在第 1、2 和第 4 點,且不會缺少資料點。 標示為「3」的 X 軸位置不會出現在圖表上。
當你不想在知道不會有資料的區間(例如週末)出現缺失資料點時,這很有用。
Important
如果你顯示多個系列,且至少有一個系列使用索引 X 值,則所有系列必須對齊——也就是資料點數相同——且對應的點必須有相同的 X 值。