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!
An easy way to toggle the visibility of series?
An easy way to toggle the visibility of series?
Ivo Bauer [OZM Research]
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ivo,
Yes, you can do as in the What's New?\Welcome!\New in Legend\Series Group example at the features demo, available at TeeChart's program group.
Yes, you can do as in the What's New?\Welcome!\New in Legend\Series Group example at the features demo, available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ivo,
No, this feature was implemented for v8.
No, this feature was implemented for v8.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: An easy way to toggle the visibility of series?
Hi,
Is there a way to programmatically modify an individual series' checkbox state? For example, can we set some sort of property to cbChecked or cbUnchecked?
Thanks,
Sajjad
Is there a way to programmatically modify an individual series' checkbox state? For example, can we set some sort of property to cbChecked or cbUnchecked?
Thanks,
Sajjad
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: An easy way to toggle the visibility of series?
Hi Sajjad,
Yes, try using series' Active or Visible properties:
Hope this helps!
Yes, try using series' Active or Visible properties:
Code: Select all
Series1.Active:=not Series1.Active;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: An easy way to toggle the visibility of series?
Thanks Narcis! Worked just fine!