An easy way to toggle the visibility of series?
Posted: Fri Nov 02, 2007 9:42 am
Hi,
I have to visualize a dependence of several kinds of data on time. For example, A=A(time), B=B(time), C=C(time) and so on. Bottom axis shows the time and the left axis shows the data series, be it A, B, C etc. I have a legend with check boxes that user can use to toggle the visibility of the series A, B and C. So far, so good.
Now, things are getting a bit complicated. The above data trends (A, B, C) are related to a single "channel", but I now need to display the data coming from multiple channels in the same chart. The approach I took uses the bottom axis as a time axis that is shared among all series and I created a given number of custom vertical axes (one custom axis per channel). So for example, if there are 5 channels and I have 3 data series per channel (A, B, C), it totals to 3x5=15 series per chart.
Now, my legend shows all 15 series (for all channels), but I'd rather want to show it only A,B,C "group" series. In other words, I'd like to be able to click on the group "A" checkbox in the legend and toggle the visibility of all "A" series for all channels at once. Is there an easy way to achieve this?
Thanks in advance!
I have to visualize a dependence of several kinds of data on time. For example, A=A(time), B=B(time), C=C(time) and so on. Bottom axis shows the time and the left axis shows the data series, be it A, B, C etc. I have a legend with check boxes that user can use to toggle the visibility of the series A, B and C. So far, so good.
Now, things are getting a bit complicated. The above data trends (A, B, C) are related to a single "channel", but I now need to display the data coming from multiple channels in the same chart. The approach I took uses the bottom axis as a time axis that is shared among all series and I created a given number of custom vertical axes (one custom axis per channel). So for example, if there are 5 channels and I have 3 data series per channel (A, B, C), it totals to 3x5=15 series per chart.
Now, my legend shows all 15 series (for all channels), but I'd rather want to show it only A,B,C "group" series. In other words, I'd like to be able to click on the group "A" checkbox in the legend and toggle the visibility of all "A" series for all channels at once. Is there an easy way to achieve this?
Thanks in advance!