2012-03-08 93 views
0

我有一張MS圖表,顯示在一個ASP.net頁面中。更改MS蠟燭棒圖中的條形顏色

的類型,我連接到圖表的系列是燭臺

的如何更改條的顏色從默認的藍色和白色爲其他如紅色和綠色?

到目前爲止我還沒有找到任何物業。

任何幫助,非常感謝。

回答

2

試試這個:

// setting bar colors 
this._chart.Series[0]["PriceUpColor"] = "Green"; 
this._chart.Series[0]["PriceDownColor"] = "Red"; 
1

或者這樣:

chart1.Series["Series1"].CustomProperties = "PriceDownColor=Red, PriceUpColor=Green"; 
相關問題