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

Column Color Based on Value

Thread ID:





121565 Jan 2,2016 03:39 PM UTC Sep 7,2016 12:12 PM UTC Xamarin.Forms 5
Tags: SfChart
Michael O'Connor
Asked On January 2, 2016 03:39 PM UTC

We need to create charts wherein the color of a column is based on the value.  For example, if the value was less than 10 the color would be red and above 50 it would be green.  Is this possible with the Syncfusion chart controls? 

Magesh Kumar Krishnan [Syncfusion]
Replied On January 4, 2016 06:50 AM UTC

Hi Micheal,

Thank you for using Syncfusion products.

We can achieve your requirement using the Custom Color Palette feature. We have prepared the sample for your requirement. Please find the sample from the following location.

Magesh Kumar K

Michael O'Connor
Replied On January 7, 2016 01:39 PM UTC


Thanks for the sample.  I'm having trouble understanding how this works though.

Based on the values in the data you're adding potential colors to the series but I don't see how those colors are tied to specific values.  If a value exists anywhere in the data less than 10 red becomes one of the colors the chart can use but I don't see how the chart knows that the specific column representing the <10 value should be red.  As a result in my code the colors are all in the chart but they are not being used on the correct columns.

Does that make sense?  What am I missing?



Magesh Kumar Krishnan [Syncfusion]
Replied On January 8, 2016 02:39 PM UTC

Hi Micheal,

Currently, we are unable to set the color directly based on the data range as you expected. But, instead we can define the color for each data points based on the condition using CustomBrushes. In our previous sample, we have populated the color for each data points based on the condition in GenerateColors method.

Magesh Kumar K

Pawan Jindal
Replied On September 6, 2016 07:33 PM UTC


We are creating a bar chart that shows negative and positive values using Syncfusion chart control for Xaml forms. We want to show all the negative values red and positive as green. Is it possible to customize the color of the data point of the series in xaml?


Yuvaraj Palanisamy [Syncfusion]
Replied On September 7, 2016 12:12 PM UTC

Hi Pawan Jindal,

We have created a support incident under your account to track the status of this query. Please log on to our support website to check for further updates.


Please let us know if you require any further assistance.



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