Page 1 of 1

TChart Legend

Posted: Thu May 05, 2005 10:31 am
by 9235196
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

Posted: Thu May 05, 2005 11:57 am
by narcis
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;