Why not just place a transparent canvas over top of the chart, same width and height of the chart, and set the x  of the image to be (canvas.width/2) - (image.width/2) and then the same for the y with the height. By binding the x and y, they will change automatically when the chart/canvas size changes.
 
Karl
 
Cynergy Systems, Inc.


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Paul BH
Sent: Wednesday, July 26, 2006 10:22 AM
To: [email protected]
Subject: Re: [flexcoders] Centering an image over a chart

is this over the entire chart, or just the area where the lines are drawn (ie not including axes...)

if its the latter, there is a protected dataRegion getter that will give you the size of the area you want to fill with your image...

On 7/26/06, parksch2 <[EMAIL PROTECTED]com> wrote:

Hi all,

I have a question as to the best way to center an image over a chart.
Basically I'd like to place an image over a chart when no data is
returned. I can't use absolute positioning because of the different
resolution possibilities. Further, we have a zoom component that makes
the chart full screen and the image would have to re-center itself. Can
anyone point me in the right direction?

Thanks in advance!


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to