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

Bar series - conditionally set color of each bar

[SF version is 13.1]

How can I conditionally set the color of each bar in a bar chart? 

As an eg, I want the bars to have a green background when the value is > 0 and red for < 0. The conditions could be more complex. 

1 Reply

SS Suresh S Syncfusion Team June 18, 2015 01:15 PM UTC

Hi Senthil,

Thanks for contacting Syncfusion support.

We have analyzed your query and prepared a sample for conditionally set color of bar chart, please download from below location,

Sample: CustomSeries

Please let us know in case of any query.


Suresh S

Live Chat Icon For mobile
Up arrow icon