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

How to highlight the horizontal base line (y=0) for a performance chart

Thread ID:





115023 Dec 19,2013 05:49 AM UTC Jan 17,2014 12:07 AM UTC WPF 4
Tags: Chart
Rodolphe Billottet
Asked On December 19, 2013 05:49 AM UTC


My application display real time performance chart.

Values upper the "y=0" line have outperformed, and of course underperformed  under the "y=0"  line.

So it is important to identify easily the base horizontal line (y=0).

As I have real time data, I need to have a dynamic range which increase all along the day to display all the data.


How can I highlight the y=0 line.  Ideal with a different color (lighter as my chart is dark)  or with a thicker line, but only that line. I want to keep the other line as it is.

I have attache a sample with an image of what I want.


Best regards,




Muneesh Kumar G [Syncfusion]
Replied On December 21, 2013 02:33 PM UTC

Hi Rodolphe,

Thanks for using Syncfusion products.

We can achieve your requirement by setting StripLine as per the below code snippet.

Code Snippet [XAML]:


<syncfusion:ChartStripLine x:Name="strip1" Interior="DarkGray" Offset="60"  Width="1"/>



We have prepared a sample based on this and you can find the sample under the following location:

Please let us know if you have any queries.


Muneesh Kumar G.



Rodolphe Billottet
Replied On January 8, 2014 08:57 AM UTC

Hi Muneesh, happy new year


Thanks for your reply.

Having a constant Offset does not work in my case as my chart is real time and with an AutoSetRange.

But I have made it dynamic using RangeChanged event like below and it seems to work well.


void SecondaryAxis_RangeChanged(object sender, ChartAxisRangeArgs e)
            strip1.Offset = -e.NewValue.Start;           

Karthikeyan V [Syncfusion]
Replied On January 9, 2014 05:41 PM UTC

Hi Rodolphe,

Thanks for the update.

We have analyzed your code and this is a correct way to change dynamic for offset about your requirement. Could you please let us know whether you require any other assistance from us?


Karthikeyan V.

Rodolphe Billottet
Replied On January 17, 2014 12:07 AM UTC

Thanks.  It's alright now.


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