Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一张在 ASP.net 页面中显示的 MS 图表。
我附在图表上的系列类型是 CandleStick
如何将条形的颜色从默认的蓝色和白色更改为其他颜色,例如红色和绿色?
到目前为止,我还没有找到任何属性。
任何帮助深表感谢。
试试这个:
// setting bar colors this._chart.Series[0]["PriceUpColor"] = "Green"; this._chart.Series[0]["PriceDownColor"] = "Red";
或这个:
chart1.Series["Series1"].CustomProperties = "PriceDownColor=Red, PriceUpColor=Green";