There's no obvious way to do what you're doing. The annotation element has access to the chart, so you could iterate over the series of the chart, and ask for their data. To get access to what is currently visible on screen, you could ask for their renderData, then look at the filteredCache inside of that. Of course, now you're tying your annotation element pretty tightly to the details and implementation of the individual series. Ely.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of durnelln Sent: Monday, February 26, 2007 7:45 AM To: [email protected] Subject: [flexcoders] Chart annotationElements based on series data Hi all - and hopefully Ely ;-) I have a LineChart containing a LineSeries which updates automagically from an arrayCollection - works great. I have also created a simple annotationElements element which renders a horizontal line across the chart at a configured value. What I'm trying to do now is to create a more complex annotationElement which draws a nice curve across the chart based on the data point values. So this time I need to access the data values themselves to perform some calculations. How do I get hold of the lineseries data values from my annotationElement? Similarly, is there a way to retrieve only the data points that are currently visible on the chart? I've had a quick poke around the charting help files and source code but I'm only getting more confused... Thanks, Nick.

