From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clickable Graphs

Sorry for the general post. Searching wasn't getting me anywhere. Has anyone
ever found a good way to highlight a single point on a graph? In my case,
I would like to highlight datapoints which have a comment associated with
them. When a user clicks on that point on the graph, the comment pops up.
It sounds simple anyway. Various attribute node attempts haven't gotten
me anywhere.

Thanks for the help
Dave
0 Kudos
Message 1 of 3
(2,482 Views)
You will have to superimposed two plots on the graph; one with all points
and the other with only the commented points keeping their value, other
points assigned a NaN value (that is not plotted). The second plot does not
need interpolation and can have a larger point style or a different color.

For user selection you create a cursor that locks to the "commented" plot.
Read the cursor position to retrieve the point and show its comment. Either
you always show the comment associated to the cursor point or have an other
boolean that the user clicks when the comment is needed. In LabVIEW you
cannot easyly
know when the user has clicked on a graph.

Hope this helps

--
Jean-Pierre Drolet
Scientech R&D inc
Trois-Rivieres-Ouest (Quebec)
CANADA G8Z 4H1

Dave Johnson
a écrit dans le message :
3905e836@newsgroups.ni.com...
>
> Sorry for the general post. Searching wasn't getting me anywhere. Has
anyone
> ever found a good way to highlight a single point on a graph? In my case,
> I would like to highlight datapoints which have a comment associated with
> them. When a user clicks on that point on the graph, the comment pops up.
> It sounds simple anyway. Various attribute node attempts haven't gotten
> me anywhere.
>
> Thanks for the help
> Dave
0 Kudos
Message 2 of 3
(2,482 Views)
You can also show the cursor name and put the comment in the cursor name
attribute.

In the metod I described, the cursor will snap to NaN values of the graph
also, an effect that you might not want. You will have to use an XY graph to
prevent this.


--
Jean-Pierre Drolet
Scientech R&D inc
Trois-Rivieres-Ouest (Quebec)
CANADA G8Z 4H1
0 Kudos
Message 3 of 3
(2,482 Views)