Thoric
2008-07-23 09:40:13 UTC
Hi all. I'm struggling with a chart to which I programmatically add and
remove plots. When I wire an empty array to the Value property it
clears the plot, as expected, but each of the plot definitions still
remains. This can be seen by simply inspecting the legend, snapshot
below. How can I remove these definitions?
<img src="Loading Image...
">
I've read that this is supposed to be a good thing, but it's not
for me. I programmatically enlarge and shrink the legend to show the
number of plots, so as the user clicks "Add Data to Plot" the legend
size increases. This works fine, but once the legend reaches ten elements deep, I turn on the vertical scroll bar and keep the legend size constant. But the vertical scroll bar allows the user to see
all previously defined (yet empty) plots, which looks terrible! Below
are three more snapshots, showing 4 defined plots, 9 defined plots and
13 defined plots. You can see that in the third snapshot where only the
first 10 are in the legend and the scrollbar is on, the user will be able to see
lots more previously defined plot entries by scrolling down. How
can I programmatically remove these definitions?<img src="Loading Image...
">
Message Edited by Thoric on 07-23-2008 10:29 AM
legend1.jpg:
http://forums.ni.com/attachments/ni/170/343219/1/legend1.jpg
legend5.jpg:
http://forums.ni.com/attachments/ni/170/343219/2/legend5.jpg
remove plots. When I wire an empty array to the Value property it
clears the plot, as expected, but each of the plot definitions still
remains. This can be seen by simply inspecting the legend, snapshot
below. How can I remove these definitions?
<img src="Loading Image...
I've read that this is supposed to be a good thing, but it's not
for me. I programmatically enlarge and shrink the legend to show the
number of plots, so as the user clicks "Add Data to Plot" the legend
size increases. This works fine, but once the legend reaches ten elements deep, I turn on the vertical scroll bar and keep the legend size constant. But the vertical scroll bar allows the user to see
all previously defined (yet empty) plots, which looks terrible! Below
are three more snapshots, showing 4 defined plots, 9 defined plots and
13 defined plots. You can see that in the third snapshot where only the
first 10 are in the legend and the scrollbar is on, the user will be able to see
lots more previously defined plot entries by scrolling down. How
can I programmatically remove these definitions?<img src="Loading Image...
Message Edited by Thoric on 07-23-2008 10:29 AM
legend1.jpg:
http://forums.ni.com/attachments/ni/170/343219/1/legend1.jpg
legend5.jpg:
http://forums.ni.com/attachments/ni/170/343219/2/legend5.jpg