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

Change the ChartSeries color

On version 9.4.0.62, how can I set the ChartSeries color?
 
Thanks

3 Replies

CG Carlos Guanes June 7, 2012 03:15 PM UTC

Also is there a way to show the X axis value (text) in 90 degree (vertical) ? (or any other degree of rotation)


CG Carlos Guanes June 7, 2012 04:27 PM UTC

I found the legend rotation...
this.ChartWebControl1.PrimaryXAxis.LabelRotate = true;
this.ChartWebControl1.PrimaryXAxis.LabelRotateAngle = -75;
 
But I still clueless about the series color...


VK Vijayabharathi K Syncfusion Team June 8, 2012 10:20 AM UTC

Hi Carlos,

 

Thanks for using Syncfusion products.

 

We suggest you to use “Interior” property of series style to set color for chart series. Please refer the below code snippet to achieve this,

 

 [C#]

this.ChartWebControl1.Series[0].Style.Interior = new BrushInfo(Color.Red);

 

You can find more information about these properties in the online documentation link from below.

http://help.syncfusion.com/UG/User%20Interface/ASP.NET/Chart/documents/45140interior.htm

 

Please let us know if any concerns.

 

Regards,

Vijayabharathi

 

 

 


Loader.
Live Chat Icon For mobile
Up arrow icon