We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Line color in Scatter_Line plot

Thread ID:





98526 Mar 7,2011 02:10 PM UTC Mar 9,2011 04:32 AM UTC ASP.NET Web Forms (Classic) 3
Tags: XlsIO
Mischa Spelt
Asked On March 7, 2011 02:10 PM UTC


Formerly I had a scatter plot with markers (Scatter_Markers), for which I could set the color using

IChartSerie series = chart.Series.Add("My series");
series.SerieFormat.MarkerForegroundColor = Color.Red;

However, after changing the plot type to a scatter plot with lines (Scatter_Line) I can no longer find how to change the color of each line separately. I tried things like

series.SerieFormat.LineProperties.LineColor = Color.Red;

but I still get the default Excel colors.

Can you please help me out with this?

Thank you very much

Mischa Spelt

Sridhar [Syncfusion]
Replied On March 8, 2011 04:50 AM UTC

Hi Mischa,

Thank you for using Syncfusion products.

We have created the sample at our side and we could see that the particular line color cannot be changed. If we are able to change it using MSExcel then we can do it XlsIO.

We have attched the sample file for your reference.

Could you please update us with the simplified sample so that we can analyze further on this issue.

Please let me know if you have any queries.



Mischa Spelt
Replied On March 8, 2011 08:58 AM UTC

Hi Sridhar,

Thank you for your example.
Using it I managed to find the reason it did not work for me. It appear I set
chart.ChartType = ExcelChartType.Scatter_Line;
/after/ adding series to the chart, which reset any custom colors I had assigned.

This problem is solved, thanks!


Sridhar [Syncfusion]
Replied On March 9, 2011 04:32 AM UTC

Hi Mischa,

Thanks for the update.

Please get back to us if you have require any clarifications.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon