I'm adding chart image exporting capabilities to my application. One of the features is that the user can select the size of the resulting image. The code is relatively straightforward. However when the source chart is much bigger than the resulting image, the axis labels get "scrunched up". See below:
Here is a demo project to illustrate what I'm doing:
http://www.cozmix.com/misc/tchartscale.zip
What I would like would be for the axis label to re-calibrate on the exported image like they do when you reduce the size of a TChart e.g.
Is this possible? I hope there's a way to do this!
Thanks,
Steve
Re-calibrating Axis Labels when Exporting...
-
- Newbie
- Posts: 13
- Joined: Mon Jun 25, 2007 12:00 am
Hi Steve,
I've tested your sample application and I've seen that using Assign method causes some strange behavior with the axes.
I've added this to be revised for further releases (TV52013950), but in the meanwhile, please use the following code instead of Assign method. This seems to work fine:
I've tested your sample application and I've seen that using Assign method causes some strange behavior with the axes.
I've added this to be revised for further releases (TV52013950), but in the meanwhile, please use the following code instead of Assign method. This seems to work fine:
Code: Select all
With xChart do
begin
ColorPaletteIndex := Chart1.ColorPaletteIndex;
Foot := Chart1.Foot;
Legend := Chart1.Legend;
SubFoot := Chart1.SubFoot;
SubTitle := Chart1.SubTitle;
Title := Chart1.Title;
Walls := Chart1.Walls;
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 13
- Joined: Mon Jun 25, 2007 12:00 am
-
- Newbie
- Posts: 13
- Joined: Mon Jun 25, 2007 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Steve,
No, Chart1.Foot will be freed by Chart1's destructor when it's freed.However, I don't understand how you can assign object pointers, free the object and not have an AV. For example, will Chart1.Foot etc be freed when xChart is freed?
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: 13
- Joined: Mon Jun 25, 2007 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Steve,
The issue hasn't been fixed yet nor I can provide an estimate date at the present moment. In the meantime you can use the workaround Yeray suggested.
The issue hasn't been fixed yet nor I can provide an estimate date at the present moment. In the meantime you can use the workaround Yeray suggested.
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: 13
- Joined: Mon Jun 25, 2007 12:00 am