[flexcoders] Centering an image over a chart
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! Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
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] 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Centering an image over a chart
On Wednesday 26 July 2006 15:08, parksch2 wrote: 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? Put the image and chart in the same container, then image.x=(chart.x+(chart.width/2) )-(image.width/2) and similar for y To explain X axis is 0-- 25px -- chart x -- chart width px -- end of chart And you want the middle of the image in the middle of the chart, (chart.x+(chart.width/2) ) gets you there, and then you need to move left half the width of the image. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Centering an image over a chart
Why notjust 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul BHSent: Wednesday, July 26, 2006 10:22 AMTo: flexcoders@yahoogroups.comSubject: 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___