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. Image for the cookie policy date
close icon

Line Chart colors

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?

Thanks!


1 Reply

RS Rajarajeswari S Syncfusion Team 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.

Regards,
Raji


Loader.
Live Chat Icon For mobile
Up arrow icon