2012-09-05 20 views

回答

6

而圖例不是一種選擇,有該系列的對象的選項:visibleInLegend,這可以動態地對一個集合或另一個邏輯測試,如設置:

new { 
    category = "Some Category", 
    value = Model.SomeCollection.Count, 
    color = "#FF9900", //Amber 
    visibleInLegend = Model.SomeCollection.Count > 0 
}, 
+0

你能告訴我怎樣才能獲取這些屬性我目前無法看到這些屬性。 –

+0

@ImranJawaid http://docs.kendoui.c​​om/api/dataviz/chart#configuration-series.visibleInLegend – StuperUser

相關問題