Different series name and legend entries.

TeeChart for ActiveX, COM and ASP
Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Different series name and legend entries.

Post by Yeray » Fri Oct 08, 2010 1:25 pm

Hi Tony,

We've just added a LegendTitle property to the Series. We've added it in the actual VCL sources but it should be available in the next ActiveX build.
Right now, I can show you the code in VCL that works for me here:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  for i:=0 to 3 do
    with Chart1.AddSeries(TBarSeries) do
    begin
      FillSampleValues(3);
      LegendTitle:='bar nº' + IntToStr(i);
      Title:='series nº' + IntToStr(i);
      Marks.Style:=smsSeriesTitle;
    end;
end;
LegendTitle.png
LegendTitle.png (10.55 KiB) Viewed 4521 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

TonyVSUK
Advanced
Posts: 163
Joined: Wed Mar 01, 2006 12:00 am

Re: Different series name and legend entries.

Post by TonyVSUK » Fri Oct 08, 2010 1:57 pm

Thanks a lot. Much appreciated.

Post Reply