Pre loader

Find the HitTestInfo of LineAnnotation's Start and End Points



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.

  • You must 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:

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.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies