|115023||Dec 19,2013 12:49 AM||Jan 16,2014 07:07 PM||WPF||4|
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.
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.
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;
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?
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.