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 data-specific value background


Hello,

I want to set the background of line chart values depending on value or another property in the data source table.

(I tried to use a trigger in the AdornmentsInfo.LabelTemplate, but don't know in the trigger how to check the current single chart position.)

For example, if I have the values 100, 110, 120, 140, I want to highlight the 110 and 140.


Is this possible?


Thanks in advance
Mike

1 Reply

AD Administrator Syncfusion Team July 6, 2009 09:28 AM UTC

Hi Mike,

Thanks for your interest in Syncfusion products.

I hope by background, you mean the line segment color. Please refer to the sample from the below given link, that illustrates a chart with custom line template. This template uses DataTriggers and check for values 110 and 140 and sets blue color.

http://files.syncfusion.com/support/Chart.WPF/7.3.0.6/84613/main.htm

Please let us know if this helps. Also please let me know if I have misunderstood your query.

Regards,
K. Saradha Devi

Loader.
Live Chat Icon For mobile
Up arrow icon