SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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

  • Jerome Mohanan
    Hello Andrew,How do we extend this to specify AnnotationCoordinateMode.RelativeX1, AnnotationCoordinateMode.RelativeX2, AnnotationCoordinateMode.RelativeY1, AnnotationCoordinateMode.RelativeY2 individually.
  • Andrew
    Hi Jerome, you can't. We only supply RelativeX, RelativeY, Relative or Absolute modes. If you want to snap one corner of an annotation to an axis maximum I would suggest binding to Axis.VisibleRange.Min or Max. Best regards, Andrew
  • Jerome Mohanan
  • Andrew
    Hi Jerome, we're still thinking about that one... its not something we support and need time to consider the best approach
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.