Pre loader

Relative Annotations

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

I am added Relative Annotations but look like it worked only for X axis. Why if Y1=0.5 it not displayed only on half of chart? What I done wrong?

Version
8.6.0.28199
Images
  • You must to post comments
0
0

Hi Fedor,

Thanks for your question.
I am sorry for the late response.

VerticalLineAnnotations can be partially drawn by setting the corresponding value for the VerticalAlignment property. Please take a look at the “VerticalAlignment Stretch and Partially Drawn Lines” section of the following documentation article for more details:
SciChart WPF Documentation – The VerticalLineAnnotation Type _ WPF Chart Documentation

However, to specify exact relative coordinates, I would recommend using LineAnnotation instead:
SciChart WPF Documentation – The LineAnnotation Type _ WPF Chart Documentation

Please also find the modified example project attached.

Kind regards,
Lex,
SciChart Technical Support Engineer

  • You must to post comments
0
0

Looks like LineAnnotation don’t have labels. But I need it.
OK, thank you. I will try with VerticalAlignment property.

P.S. But you can add vertical relative size for VerticalLineAnnotations (and horizontal for HorizontalLineAnnotations) in next versions ))))

  • Lex
    • Lex
    • 5 months ago
    Hi Fedor, Thanks for your reply. I’ll discuss this with our team and will get back to you with an update. Kind regards, Lex
  • You must to post comments
0
0

Hi Fedor,

I discussed your inquiry with our team.
It is possible to set relative Y coordinates for Vertical Line Annotations.
To do so you have to set both VerticalAlignment property to Bottom or Top and CoordinateMode property to Relative Y.
Please see the modified project attached.

Please also note that if Annotation is aligned to Top, to place AnnotationLabel on the XAxis you should set the LabelPlacement property to Axis.

With best regards,
Lex

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.