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.
- PRADNYA NAIKWADI asked 5 years ago
- You must login to post comments
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.
- Oleksandr Shvets answered 5 years ago
- You must login to post comments
Please login first to submit.