Chart Series Color

Dear Aspose support team,

My requirement is that, i am using two charts 1.Column100PercentStacked 2.Area. I want to change the color of the column based on the series. I have used the following code,but it is not working for Column100PercentStacked chart and Area chart :
...Worksheets[0].Charts[i].NSeries[j].Line.Color = Color.Red;


Please let me know how to achieve this feature.

Thankyou.

Saravanan

Hi Saravanan,

If you want to modify the fill color of columns for a data series in a Column100PercentStacked or color the area for a data series in an Area chart, you should modify your code to:

...Worksheets[0].Charts[i].NSeries[j].Area.ForegroundColor = Color.Red;

Thank you.