Add an image to a chart

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
nh128
Newbie
Newbie
Posts: 3
Joined: Mon Jul 01, 2013 12:00 am

Add an image to a chart

Post by nh128 » Wed Jul 23, 2014 2:43 am

I need to be able to add an image to a TChart in the bottom right hand corner.

I am using TChartPro v8.06.60902 Win 32 with C++Builder 2010 and Win7

Editing a chart, I added a jpg via Chart>Panel>Image and set Style to Custom and tried
to position the image by setting Position Left & Top values. However Left &Top values are limited
to 0 to 100. These values seem to be in pixels not percent of the chart as one might expect
given the range. Is this a bug or is there some way of changing the meaning of
Left & Right to be a percentage of the chart?

Or is there some other way of adding an image (ie a corporate logo) to the bottom
right hand corner.

Thank you

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Add an image to a chart

Post by Sandra » Wed Jul 23, 2014 2:30 pm

Hello nh128,

I would like suggest that to add a logo in your chart, use the Annotation or Rectangle tools. These tools allow you add a picture in these and in the position where you want. To do it by Chart Editor you need only follow next steps:

1.- Open Chart Editor and go to Tools Tab
2.- Click to Add button, go to Others Tab and select Annotation or Rectangle tool
3- Go to Tools picture tab and add image as you want.

Hoping it will helps, otherwise let me know.

Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

nh128
Newbie
Newbie
Posts: 3
Joined: Mon Jul 01, 2013 12:00 am

Re: Add an image to a chart

Post by nh128 » Thu Jul 24, 2014 3:54 am

Thanks for that. I tested and it worked well.

Since the charts are generated at run time I have a bit of work to do,

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Add an image to a chart

Post by Sandra » Thu Jul 24, 2014 12:21 pm

Hello nh128,

Thanks for your feedback. I am glad my suggestion has worked for you :).

Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply