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
TChart Legend
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Herman,
Yes, you can do something like:
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 |
Instructions - How to post in this forum |