LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a custom plot legend

I'm making a GUI with a couple graphs and I'd like one unified legend for all of them. I could make the legend with a Listbox or a Tree, but I'm not sure how to get features like the visibility checkboxes, or some of the nice right-click items, like the Common Plots, and Color selector. Any ideas?

 

OneOfTheDans_1-1646683251021.png

 

0 Kudos
Message 1 of 4
(784 Views)
You could make a cluster (and then an array of those clusters) for the plot properties. If the user clicks it you will have to use property nodes to modify the plots. A check box and color box would be easy to put in, common plots would be more difficult. Maybe you could create an enum and give a name to each plot or find a clever use ascii art to represent the different options.
0 Kudos
Message 2 of 4
(757 Views)

Hi,

 


@Gregory wrote:
common plots would be more difficult.

I guess that's what PictureRings are good for…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(728 Views)

Thanks guys, I was hoping for some way to drop a legend (sans graph) as a FP primitive, but it sounds like the only way is building the custom array of clusters (or similar). If only trees & listboxes supported more than just strings...

0 Kudos
Message 4 of 4
(696 Views)