Seeing as the annotation element would be tied so tightly to the
details of the individual series, would it maybe be an idea to create
your own series that draws the series and, optionally, the curve
annotation?  That way it'd simplify accessing the series data too. 
The downside would be that you end up with something that's maybe not
particularly flexible.

Graham


--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]> wrote:
>
>  
>  
>  
> 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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of durnelln
> Sent: Monday, February 26, 2007 7:45 AM
> To: flexcoders@yahoogroups.com
> 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.
>


Reply via email to