TChart Legend

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Herman
Newbie
Newbie
Posts: 56
Joined: Tue Dec 07, 2004 5:00 am

TChart Legend

Post by Herman » Thu May 05, 2005 10:31 am

I add 3 fastline series and 2 point series into a chart.
In the legend (tchar's legend) can it just display the fast line series, instead of all the series?

Thank you

Herman

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 May 05, 2005 11:57 am

Hi Herman,

Yes, you can do something like:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var
  i: Integer;
begin
  for i:=0 to Chart1.SeriesCount-1 do
  begin;
    Chart1[i].FillSampleValues();
    if Chart1[i] is TPointSeries then
      Chart1[i].ShowInLegend:=false;
  end;
end;
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