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

Bar series - conditionally set color of each bar

Thread ID:





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

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


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