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 Chart colors

Thread ID:





71253 Jan 23,2008 05:28 PM UTC Jan 25,2008 12:27 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Chart
Ernie Schlangen
Asked On January 23, 2008 05:28 PM UTC

I want to manually change the color of a line in a line chart. I tried series.style.border.color (since border.width changes the line thickness) but that doesn't seem to work. Can someone tell me where to do this?


Rajarajeswari S [Syncfusion]
Replied On January 25, 2008 12:27 PM UTC

Hi Ernie,

Thanks for using Syncfusion products.

You can manually change the line color of the line chart by setting the Interior color. Please refer the below code snippet which illustartes this:

series.Style.Interior = new BrushInfo(Color.Green);

Please try this and let me know if this helps you out.



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