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

Set chart label text color based on value

Thread ID:





124735 Jun 26,2016 11:58 PM UTC Jun 27,2016 05:39 AM UTC Xamarin.Forms 1
Tags: SfChart
Jeff Lindborg
Asked On June 26, 2016 11:58 PM UTC

So I have a chart marker enabled with the DataMarkerLabelStyle configured with text and background color and such - which works fine. However, what I want to do is dynamically set that label text color based on the value of that node - so high numbers in red, low numbers in blue that sort of thing.
I know how to approach this when there's a template involved setting the binding and the like but I'm not sure how to approach that problem for the label text color - is there a way to do this?

Saravana Pandian Murugan [Syncfusion]
Replied On June 27, 2016 05:39 AM UTC

Hi Jeff,

We have prepared a sample using custom renderers for your requirement which can be downloaded from the below location.

Sample :  http://www.syncfusion.com/downloads/support/forum/124735/ze/DataMarkerSample1739093038  

Saravana Pandian M.


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

or the page will be automatically redirected to 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