active line series count

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bcmiller
Newbie
Newbie
Posts: 30
Joined: Mon Jan 24, 2005 5:00 am

active line series count

Post by bcmiller » Wed Sep 21, 2005 5:01 pm

Haven't been able to locate the property or method that will allow me to know how many series are currently active.

thanks

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Sep 22, 2005 7:15 am

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);
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply