SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
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.
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:
I would advise against setting BoxAnnotation.Y1, Y2 to +/- infinity as this might cause a crash in WPF itself (infinite sized UIElement).
Please login first to submit.