Need urgent help in changing series color in Line chart.
@amolhekade Please see our documentation to learn how to change series formatting:
https://reference.aspose.com/words/net/aspose.words.drawing.charts/chartseries/format/
I saw your document, but it applies to only pie, column , bar chart and not to Line chart. Please help
@amolhekade For the line chart you should use ChartFormat.Stroke
instead of ChartFormat.Fill
:
// Set series color.
series1.Format.Stroke.ForeColor = Color.Red;
series2.Format.Stroke.ForeColor = Color.Yellow;
series3.Format.Stroke.ForeColor = Color.Blue;
Thanks A Lot.
1 Like