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

Thread ID:





84613 Jul 1,2009 02:55 PM UTC Jul 6,2009 09:28 AM UTC WPF 1
Tags: Chart
Administrator [Syncfusion]
Asked On July 1, 2009 02:55 PM UTC


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

Administrator [Syncfusion]
Replied On 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.


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

K. Saradha Devi


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