Page 1 of 1

Legend: How to display Name and Lastvalue??

Posted: Thu Jul 29, 2004 2:37 pm
by 9338020
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

Posted: Fri Jul 30, 2004 9:37 am
by Pep
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;