In Flex 2, if you want to draw on the chart (or place buttons on it, etc) you should create a custom chart element (like an annotationElement) and add it to the chart's annotationElements array.

matt



From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Sreenivas R
Sent: Monday, January 09, 2006 8:19 AM
To: [email protected]
Subject: Re: [flexcoders] Drawing on a chart?

Yes it is possible to draw shapes on top of a chart. You can create a generic UIComponent and add as a child to the application or chart. Then you can draw using the normal beginFill/drawRect/endFill rounties.
 
-Sreenivas

 
On 1/3/06, Doug Wagner <[EMAIL PROTECTED]> wrote:
Is it possible to draw shapes on top of a chart in Flex?

What I want to do is change the shading of the chart background for a
portion of the chart to highlight a selected range.  I'd also like to
be able to draw a rectangle on top of the chart to accomplish a
similar thing.

Does anyone know of a way to do either of these?

Thanks,
Doug






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






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