OK, callLater() seems to do the trick.

________________________________
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Battershall, Jeff
Sent: Tuesday, September 01, 2009 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Chart Annotation Headaces




I'm attempting to add annotation items to a LineChart via 
CartesianDataCanvas,addDataChild();

There are two steps involved - one where the chart data is returned, 
immediately followed by my attempt at annotation.

The results are inconsistent.  Sometimes the annotation items (graphics) render 
properly, and sometimes some are dropped.  I've been trying to find the correct 
event to listen to, thinking that perhaps the chart has to finish rendering 
with it's new ArrayCollection, but so far it's a mystery.  updateComplete does 
not work as it creates an infinite loop as new updateComplete events are fired 
when new annotation items are added.

Any advice appreciated!

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)

(484) 477-9900 (c)





Reply via email to