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

Bar series - conditionally set color of each bar

Thread ID:





119410 Jun 17,2015 05:45 AM Jun 18,2015 09:15 AM WPF 1
Tags: SfChart
Senthil Ramanathan
Asked On June 17, 2015 05:45 AM

[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. 

Suresh S [Syncfusion]
Replied On June 18, 2015 09:15 AM

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


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