Hello,
I have the Chart Title Aligned as taLeftJustify.
Now I want the legend to be on the same row as the Title. In my case the legend will always be one line.
Unfortunatly can't I find a way to get the postion of the Title.
Is there a way to do this via the Legend position custom Left en Top properties?
Thank you,
Perry
Align Legend to Chart title
Hi Perry,
to do this you can use the following code :
Josep Lluis Jorge
http://support.steema.com
to do this you can use the following code :
Code: Select all
with Chart1 do
begin
Legend.Alignment := latop;
Legend.CustomPosition := true;
Draw;
Legend.Top := Chart1.Title.Top;
Legend.Left := Chart1.Title.Left + Chart1.Title.Width + 10;
end;
http://support.steema.com