12-22-2009 08:48 AM
I have a Waveform Chart (and legend) with multiple waveforms. I can control the visibility of a given waveform on the chart programmatically using the "ActPlot" and "Plot.Visible?" properties.
Is it possible to programmatically make the legend only contain the plot names that are visible at any given time?
Cheers,
Dan
12-22-2009 09:55 AM
12-23-2009 09:23 AM
Hello DanB,
Following along the lines of what smercurio_fc suggested, you can use the Legend>Number Of Rows property (LegNumRows) to change the number of rows of your legend to the number of plots you are viewing, and then use the Plot>Plot Name property (Plot.Name) to edit the names of the plots yourself. I cannot see a property to extract these names dynamically, so this is probably your best bet.
I hope this helps, otherwise please do let us know if there is anything further,
Kind Regards,
Michael S.
Applications Engineer
NI UK & Ireland