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.
Syncfusion Feedback

Chart series colours

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

Hi,

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.

Regards,
Geetha

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.

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

;