Search code examples
c#chartsmschartcandlestick-chart

Changing the Bar Colors in MS Candle Stick Chart


I have got an MS chart that I am showing in an ASP.net page.

The type of the series that I am attaching to the chart is of CandleStick

How can I change the colors of the bars from default blue and white to something else eg Red and Green?

I haven't found any properties so far.

Any help is much appreciated.


Solution

  • Try this:

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