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
- preston truong asked 7 months ago
- You must login to post comments
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
- Lex answered 7 months ago
- You must login to post comments
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
- preston truong answered 7 months ago
- last edited 7 months ago
- You must login to post comments
Please login first to submit.