LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show the legend label dynamically when moving the mouse over a curve?

Hi all,

 

I'd like to show the legend label dynamically when moving the mouse over a curve.

 

I’ve already set the Node property of the graph legend label, but it doesn’t achieve the effect I want.

 

Does anyone have tips on how to solve this? For example, something similar to how Excel shows information dynamically when you hover over a data point.

 

 

sageliu18053_0-1751790141182.png

 

0 Kudos
Message 1 of 3
(236 Views)

If you spin the loop and update the graph millions of times per second, it is difficult to move over any specific curve. What you are trying to do has nothing to do with the plot legend and your properties are already set and retained between sessions. No need to set them with every run. One of your signals has an amplitude of zero, what's the point?

 

You can work with mouse-move events, annotations and maybe plotimages overlay. What have you tried?.

 

 

0 Kudos
Message 2 of 3
(202 Views)

Thank you for your comments.

 

It's just a demo, don't mind the amplitude value, I just wanted to know how to hover the mouse to show the plot legend. 

Finally, I achieved this using a mouse move event that displays the legend.

 

 

sageliu18053_0-1751974945513.png

 

 

0 Kudos
Message 3 of 3
(140 Views)