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

Set chart label text color based on value

Thread ID:

Created:

Updated:

Platform:

Replies:

124735 Jun 26,2016 11:58 PM UTC Jun 27,2016 05:39 AM UTC Xamarin.Forms 1
loading
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  

Thanks,
Saravana Pandian M.
 


CONFIRMATION

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

;