Re: [flexcoders] Re: Centering an image over a chart

2006-07-26 Thread Paul BH



yep, so you take the dataRegion rectangle, find the middle of it, and hey presto, all sorted - something like this:        override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{
            super.updateDisplayList(unscaledWidth,unscaledHeight);            var rect:Rectangle = dataRegion;
            myImage.x = rect.left + (rect.width-myImage.width)/2 
            myImage.y = rect.top+ (rect.height-myImage.height)/2         }showing / hiding you can do when the data changes...On 7/26/06, 
parksch2 <[EMAIL PROTECTED]> wrote:













  



Hey,

Thanks for the response. It's an image that basically says "No data 
for this chart" so it won't have to scale or anything. I'm just 
trying to place it right in the middle of the chart. It doesn't have 
to be perfect, just relatively in the center of where the lines are 
drawn in the chart.

Thanks!

--- In flexcoders@yahoogroups.com, "Paul BH" <[EMAIL PROTECTED]> wrote:

>
> 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.



  






__,_._,___



[flexcoders] Re: Centering an image over a chart

2006-07-26 Thread parksch2
Hey,

Thanks for the response. It's an image that basically says "No data 
for this chart" so it won't have to scale or anything. I'm just 
trying to place it right in the middle of the chart. It doesn't have 
to be perfect, just relatively in the center of where the lines are 
drawn in the chart.

Thanks!


--- In flexcoders@yahoogroups.com, "Paul BH" <[EMAIL PROTECTED]> wrote:
>
> 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!
> >
> >  
> >
>







 Yahoo! Groups Sponsor ~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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/