Lol... yeah there's an easier way ;-)

It's been a long time, so I can't explain fully off the top of my head, but
check out the dataTransform object and specifically invertTransform(x,y)
which takes screen coordinates and returns the axis values at that point.
 You can look into a blog post I did many years ago which will contain all
the wisdom you need (I hope), although it's fairly involved and may have a
lot you're not interested in.

Here's the post, and source link.  Specifically check out
com.cnet.annotation.view.AnnotationDrawLayer
for the getChartCoordinates() method.  Additionally, Ely Greenfield created
a solution for easy charting translations... don't remember the name of the
package, but check out his blog (www.quietlyscheming.com).


http://www.visualconcepts.ca/clients/cnet/ChartAnnotation.html

http://www.visualconcepts.ca/clients/cnet/srcview/index.html


Hope this helps... without the whooshing sound :-)




On Tue, Sep 7, 2010 at 6:54 PM, napearson99 <napearso...@yahoo.com> wrote:

>
>
> I mean, you would think you could just give the line series the X value and
> it could tell you the current Y value. Couldn't be that simple, right?
>
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Mike"
> <msl...@...> wrote:
> >
> > I did something like this for EBay. I defined a hierarchy of Equation
> classes, including linear, nth order polynomials, power law. The base
> Equation class provided common functionality such as data initialization and
> solving for the unknown gien a variable. Applications could then be written
> that called the library function in real time, so a mouse could be tracked
> while live X and Y intercepts were displayed, etc. Sorry I can't offer the
> source code. Hopefully this gives you an idea of how you might proceed.
> >
> > Mike
> >
>
>  
>

Reply via email to