Re: [flexcoders] strategery help: how to make crosshair on AreaChart
import mx.managers.CursorManager; import mx.managers.CursorManagerPriority; function showTehCursor() { hideTehCursor(); cursorID = CursorManager.setCursor ( CrossHairImg , CursorManagerPriority.MEDIUM, 0, 0 ); } function hideTehCursor() { CursorManager.removeCursor ( cursorID ); cursorID = null; } [Embed("crosshair.png")] var CrossHairImg:Class; var cursorID:int; - Original Message - From: "tddclare" <[EMAIL PROTECTED]> To: Sent: Tuesday, July 11, 2006 2:06 PM Subject: [flexcoders] strategery help: how to make crosshair on AreaChart I have an area chart. As the user mouses around over it, I'd like a hirzontal and vertical "crosshair" (one horiz, one vert gridline, sort of) to track the mouse pointer. I see the annotationelements, and am already using it for my gridlines. I'm wondering if anyone has ideas of how to implement the crosshair? I'm guessing a canvas that I can use the drawing API on to draw the lines as the mouseMoves. But how to tie the position of the mouse over JUST the chart area showing the actual data (not over the axes labels, etc) to the X and Y to draw the lines? And how to get it to work in the annotationElements array? I'm assuming I need to make whatever I create a ChartElement, but I haven't ever actually cracked open the existing objects and tried to tie into them at such a low level. If anyone has any thoughts or guidance, even just for general ways to get into the source code and create a new class from them, I'd appreciate it. Thanks! -- 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 Yahoo! Groups Sponsor ~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/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/
RE: [flexcoders] strategery help: how to make crosshair on AreaChart
http://www.quietlyscheming.com/blog/charts/chart-sampler/ Run the app, and go to the 'custom annotation' sample under the 'customization' folder. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tddclareSent: Tuesday, July 11, 2006 2:07 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] strategery help: how to make crosshair on AreaChart I have an area chart. As the user mouses around over it, I'd like ahirzontal and vertical "crosshair" (one horiz, one vert gridline, sortof) to track the mouse pointer.I see the annotationelements, and am already using it for mygridlines. I'm wondering if anyone has ideas of how to implement thecrosshair? I'm guessing a canvas that I can use the drawing API on to draw thelines as the mouseMoves. But how to tie the position of the mouseover JUST the chart area showing the actual data (not over the axeslabels, etc) to the X and Y to draw the lines? And how to get it towork in the annotationElements array?I'm assuming I need to make whatever I create a ChartElement, but Ihaven't ever actually cracked open the existing objects and tried totie into them at such a low level.If anyone has any thoughts or guidance, even just for general ways toget into the source code and create a new class from them, I'dappreciate it.Thanks! __._,_.___ -- 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 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] strategery help: how to make crosshair on AreaChart
I have an area chart. As the user mouses around over it, I'd like a hirzontal and vertical "crosshair" (one horiz, one vert gridline, sort of) to track the mouse pointer. I see the annotationelements, and am already using it for my gridlines. I'm wondering if anyone has ideas of how to implement the crosshair? I'm guessing a canvas that I can use the drawing API on to draw the lines as the mouseMoves. But how to tie the position of the mouse over JUST the chart area showing the actual data (not over the axes labels, etc) to the X and Y to draw the lines? And how to get it to work in the annotationElements array? I'm assuming I need to make whatever I create a ChartElement, but I haven't ever actually cracked open the existing objects and tried to tie into them at such a low level. If anyone has any thoughts or guidance, even just for general ways to get into the source code and create a new class from them, I'd appreciate it. Thanks! Yahoo! Groups Sponsor ~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/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/