If you position the legend (using custom) you can export the chart and all works well.
If you choose to reduce the size of the metafile then the legend disappears.
As far as I can understand it - it remains in the same position but as I have chosen to shrink the graph it has fallen off the canvas?
If you then place it on the right of the chart - it does not reduce in size in the same way as the chart - so you end up with a tiny graph and a big legend.
Richard
exporting charts with legends in custom positions
-
- Newbie
- Posts: 58
- Joined: Mon May 17, 2004 4:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Richard,
This is probably because instead of assigning an absolute position to the legend you should assign a relative position. The position could be relative to any series point, axes position, chart borders, etc.
This is probably because instead of assigning an absolute position to the legend you should assign a relative position. The position could be relative to any series point, axes position, chart borders, etc.
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 |
-
- Newbie
- Posts: 58
- Joined: Mon May 17, 2004 4:00 am
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Richard,
Yes, you can do this programmatically:
Yes, you can do this programmatically:
Code: Select all
procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues();
Chart1.Draw;
With Chart1.Legend do
begin
CustomPosition:=true;
Left:=Chart1.Axes.Left.PosAxis;
Top:=Chart1.Axes.Left.IStartPos;
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 |