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?
- Fedor Iudin asked 6 months ago
- You must login to post comments
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
- Lex answered 5 months ago
- last edited 5 months ago
- You must login to post comments
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 ))))
- Fedor Iudin answered 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 login to post comments
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
- Lex answered 5 months ago
- last edited 5 months ago
- You must login to post comments
Please login first to submit.