Page 1 of 1

Add an image to a chart

Posted: Wed Jul 23, 2014 2:43 am
by 16466434
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

Re: Add an image to a chart

Posted: Wed Jul 23, 2014 2:30 pm
by 10050769
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,

Re: Add an image to a chart

Posted: Thu Jul 24, 2014 3:54 am
by 16466434
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,

Re: Add an image to a chart

Posted: Thu Jul 24, 2014 12:21 pm
by 10050769
Hello nh128,

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

Thanks in advance,