BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi,
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,
Rodolphe
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:ChartAxis.StripLines>
<syncfusion:ChartStripLine x:Name="strip1" Interior="DarkGray" Offset="60" Width="1"/>
</syncfusion:ChartAxis.StripLines>
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.
Regards,
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;
}
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?
Thanks,
Karthikeyan V.
Thanks. It's alright now.