SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

0
0

Dear all,

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

regards

Version
4
  • You must to post comments
0
0

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!
Best regards,
Andrew

  • You must to post comments
0
0

Thanks andrew, I will give it a try and let you know

  • You must to post comments
0
0

Hi ,

you said
“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 ?

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

Please first to submit.