Pre loader

How to attached a comment to a selected point on a graph

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

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

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
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
Showing 3 results
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