SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
I am evaluating the graph control and I need to cover a request for my customer project.
The thing is that my customer have a bunch of data which gets display as scatter graph view.
The idea is that if the user is placing the mouse over a point, I need to display the current point value (x,y) as an information.
Then in an other hand, if the user click on the point, I need to open a text box and enter a description for that point. The comment and point link will be store in a database to be able to recall.
How cqn I do the 2 operations of displaying values on mouse over and poo up a text box for comment on point ckick ?
Thanks for your help on this
The popup text box I can’t help you with, but I can tell you about APIs in SciChart that can help.
PointMetadata: Allows you to tag any datapoint with custom data. Use this to store your custom data in the chart.
HitTest API: Gives you feedback on what point is under the mouse, e.g. on click or on mouse move.
ChartModifier API: Allows you to create custom behaviors which interact with the chart, e.g. on mousedown, mouseup, mousemove.
I would suggest looking into a combination of PointMetadata and Hit-Test to get some data out of the chart on click of a point. Using that you can use WPF to show a textbox (that’s the part you’ll have to figure out yourself).
Let me know if this helps!
“I would suggest looking into a combination of PointMetadata and Hit-Test to get some data out of the chart on click of a point. Using that you can use WPF to show a textbox (that’s the part you’ll have to figure out yourself).”
Using WPF to show a text box is not a problem.
The main point I try to figure out from samples which I cannot get, is mainly how to display a UserControl which will be place at the point location I have clicked and then remains visible
(see picture below for sample )
When user click on the point, the comment box gets displayed and should be position above the point. Then annotation comment should then be kept attached to the graph and to the point.
Do you have any sample which help to dig this out ?
Please login first to submit.