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

0
0

Hello,

I am creating a LineAnnotation using Annotation Modifier.

In AnnotationCreated event, I need the Hit Test Info of the start and end Points of annotation i.e. annotation.X1,Y1,X2,Y2 points in order to find out the series name and other information(similar to HitTestAPI example in examples suit).

I also need to verify if they are lying on a series or not.

The problem here is series.HitTest() accepts a raw point which I am unable to get from annotation.

Is there any way to do this.

Version
5.4.0.12119
  • You must to post comments
0
0

Hi Pradnya,

Thanks for your inquiry. I am sorry for the late reply.
You can use our Coordinate Transformation API combined with Hit-Test API to check whether LineAnnotation lies on the RenderableSeries.

Please take a look at our documentation regarding Coordinate Transformation:
https://www.scichart.com/documentation/v5.x/webframe.html#Axis%20APIs%20-%20Convert%20Pixel%20to%20Data%20Coordinates.html

You should convert (X1, Y1), (X2, Y2) Annotation coordinates into pixel (raw) coordinates using the Coordinate Transformation API from this article.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.