Hi Melba,
but this does not work for 3d charts. If the general Chart type is column_stacked_3d and you make one series to Line_3d the whole chart is Line_3d.
best regards,
Kai
>Hi Kai,
Thank you for your interest in Essential XlsIO. Yes it is possible to format the series also. Use the following code snippets to set line color, background color and fill pattern.
[C#]
//setting Line Color.
serietwo.SerieFormat.SerieDataFormat.LineProperties.LineColor=System.Drawing.Color.IndianRed;
//setting Back ground color.
serietwo.SerieFormat.SerieDataFormat.AreaProperties.BackgroundColorIndex=ExcelKnownColors.Pale_blue;
//Fill pattern
serietwo.SerieFormat.SerieDataFormat.AreaProperties.Pattern=ExcelPattern.ForwardDiagonal;
[VB]
''setting Line Color.
serietwo.SerieFormat.SerieDataFormat.LineProperties.LineColor=System.Drawing.Color.IndianRed
''setting Back ground color.
serietwo.SerieFormat.SerieDataFormat.AreaProperties.BackgroundColorIndex=ExcelKnownColors.Pale_blue
''Fill pattern.
serietwo.SerieFormat.SerieDataFormat.AreaProperties.Pattern=ExcelPattern.ForwardDiagonal
Here is a sample for your reference:
chart_color.zip
Please take a look at the sample above and let me know if you have any questions.
Regards,
Melba