I am trying to iterate through series in a line chart and change the color of the series. Below is my code, and it currently only works for bar charts:
//Series Colors (customSeriesColorsArray is the array containing my colors)
int i = 0;
foreach ( Excel.Series series in chartObject.Chart.FullSeriesCollection())
{
series.Interior.Color = customSeriesColorsArray[i];
i++;
}
To change the color of line charts in VBA you have to target the points of the series. I assume the same thing applies to C#. However, I have not figured out how to do this. When I run the above code on line charts it simply changes nothing.
Thank you very much in advance.