Haven't been able to locate the property or method that will allow me to know how many series are currently active.
thanks
active line series count
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi bcmiller,
I'm afraid there's no property for that. There's TChart.Series[SeriesIndex].VisibleCount but this method counts the number of visible points for a series. To achieve what you request yo ucan do something like:
I'm afraid there's no property for that. There's TChart.Series[SeriesIndex].VisibleCount but this method counts the number of visible points for a series. To achieve what you request yo ucan do something like:
Code: Select all
var
i, Active: Integer;
begin
Active:=0;
for i:=0 to Chart1.SeriesCount-1 do
if Chart1[i].Visible then inc(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 |