Pre loader

BoxAnnotation Stretch behaviour

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

Answered
2
0

I want to have a BoxAnnotation where Y1 (- double.Infinity) and Y2 (+ double.Infinity). Basically I wanna specify only X1 and X2. And the behaviour must ensure always the box annotations Y1 & Y2 stretch to visible area even when I resize (zoomout) the chart.

In the screen shot its not stretched.

Images
  • You must to post comments
Best Answer
1
0

Hi Jerome,

The property you are looking for is AnnotationBase.CoordinateMode. It’s hard to find but we have several FAQs on CoordinateMode. This one is perhaps the best:

https://www.scichart.com/questions/question/how-to-find-the-currently-visible-extents-of-the-x-axis

I would advise against setting BoxAnnotation.Y1, Y2 to +/- infinity as this might cause a crash in WPF itself (infinite sized UIElement).

Best regards,
Andrew

  • 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