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.
Unfortunately, activation email could not send to your email. Please try again.

Line color in Scatter_Line plot

Thread ID:

Created:

Updated:

Platform:

Replies:

98526 Mar 7,2011 09:10 AM Mar 8,2011 11:32 PM ASP.NET Web Forms (Classic) 3
loading
Tags: XlsIO
Mischa Spelt
Asked On March 7, 2011 09:10 AM

Hi,

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
Tessella


Sridhar [Syncfusion]
Replied On March 7, 2011 11:50 PM

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.

Thanks,
Sridhar.S




PlotAreaShrink_918d237e.zip

Mischa Spelt
Replied On March 8, 2011 03:58 AM

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!

Mischa.


Sridhar [Syncfusion]
Replied On March 8, 2011 11:32 PM

Hi Mischa,

Thanks for the update.

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

Thanks,
Sridhar.S


CONFIRMATION

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.

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.

;