Pre loader

Gather Chart Data from Annotation

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
0
0

Hello,

I am trying to select a single X value on my chart and get the data values from the X value that I selected. I am still pretty new to SciChart but I was looking around and saw that there is a DataPointSelectionModifier. My goal is to create a VerticalLineAnnotation for the user to use and once that annotation is created, to pull the data values from that X value. Could this be done? Any advice or help is greatly appreciated!

Thanks,

Preston

Version
6.3.0.13476
  • You must to post comments
Great Answer
0
0

Hello Preston,

Thanks for your inquiry.
You can use our Hit-Test API to get the required X-values.
You can find more details in the corresponding documentation article at the following link:
https://www.scichart.com/documentation/win/current/webframe.html#RenderableSeries%20APIs%20-%20Hit%20Testing.html

Hope this helps.
Please let us know if you have any further questions.

With best regards,
Lex
SciChart Technical Support Engineer

  • You must to post comments
0
0

Thank you Lex,

I am having some trouble figuring out the mouse position aspect. If I want to use a vertical line annotation to get the position in the chart instead of directly clicking on the spot in the line could I do that? Or do HitTests only really work based off of mouse position? I attached an example of what I am attempting to do. I have a vertical line annotation and when I click I want to be able to obtain the value 10499 from the chart to display.

Thank you so much for the help.

Preston

Images
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.