Page 1 of 1

active line series count

Posted: Wed Sep 21, 2005 5:01 pm
by 9235705
Haven't been able to locate the property or method that will allow me to know how many series are currently active.

thanks

Posted: Thu Sep 22, 2005 7:15 am
by narcis
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:

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);