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. Image for the cookie policy date

Set chart label text color based on value

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?

1 Reply

SP Saravana Pandian Murugan Syncfusion Team 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.
 


Loader.
Live Chat Icon For mobile
Up arrow icon