SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
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.
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:
You should convert (X1, Y1), (X2, Y2) Annotation coordinates into pixel (raw) coordinates using the Coordinate Transformation API from this article.
Please login first to submit.