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

Chart series colours

Thread ID:





88871 Aug 13,2009 04:47 PM UTC Aug 17,2009 09:42 AM UTC ASP.NET Web Forms (Classic) 1
Tags: XlsIO
Asked On August 13, 2009 04:47 PM UTC

how can i change the colour of dynamically added series lines in a line chart?

Geetha M [Syncfusion]
Replied On August 17, 2009 09:42 AM UTC


Thank you for your interest in Syncfusion products.

Could you please clarify me if you intend to use 'Directly entered Values' as 'Dynamically added series'? If yes, then you can achieve it using the code snippet given below.

IChartShape chart = sheet.Charts.Add();
IChartSerie serie = chart.Series.Add("Line Chart", ExcelChartType.Line);
serie.EnteredDirectlyValues = new object[] { 32, 34, 63, 62, 73 };
serie.EnteredDirectlyCategoryLabels = new object[] { "One", "Two", "Three", "Four", "Five" };

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

Please try this and let me know if you have any questions.



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