Legend: How to display Name and Lastvalue??

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
iabg
Newbie
Newbie
Posts: 1
Joined: Thu Jul 01, 2004 4:00 am
Location: Germany
Contact:

Legend: How to display Name and Lastvalue??

Post by iabg » Thu Jul 29, 2004 2:37 pm

I use TeeChart Pro 7.01. The TeeChart is used to display multiple Series.

A Legend Box is already used to display the Series Names and now the Last Values are needed too. So the Idea was to simply add a tool named: ExtraLegend. But this extra Legend always shows up in the Diagram Area hiding Series Lines.

The "normal Legend" has the property: Resize Chart if used the Legend is out of the Diagram. But this does not work with the ExtraLegend.

Does anyone know how to display Name and Last Values in one Legend or how to display the ExtraLegend out of the Diagram Area????

-Markus

Pep
Site Admin
Site Admin
Posts: 3298
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jul 30, 2004 9:37 am

Hi Markus,

using the Extra Legend Tool you can set a custom Position (for example position it under the default Legend) :

Code: Select all

procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
Charttool1.Legend.Left := Chart1.Legend.Left;
Charttool1.Legend.Top := Chart1.Legend.Top + Chart1.Legend.Height + 10;
end;

Post Reply