Pre loader

how can i added a line in my chart

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

Hello All,

i draw in real time my curve and i want added a line(For exemple Y=0.055) in my chart (like my picture)!
it’s possible to draw in Scichart a serie (line) when you make just the Yvalue like my picture i want just identify the Y=0,055 ?

how can i did this with scichart ?
Thank You
Best Regards,
Sahar

Images
  • You must to post comments
0
0

Hi Sahar,

You can add a line easily, by using the HorizontalLineAnnotation. Please see our article Annotations are Easy! for further details.

We also have many examples which include horizontal lines, for instance, these ones:

Hope this helps!

Best regards,
Andrew

  • sahar Les
    Hi Andrew, thank you but i want added this line from the code XAML.cs a not from the code XAML because always the users have the possiblity to change the value of Y ! (like the Threshold) Best Regards Sahar.
  • Andrew Burnett-Thompson
    Hi Sahar, every line of code in XAML is interchangeable in C# (code-behind). You'll have to do some homework to find out how! If you want to do this because users change values, then maybe architecting your application with MVVM and using data binding is a better way. Best regards, Andrew
  • sahar Les
    Hi Andrew, Okay thank you.Best Regards,Sahar
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies