Re: [flexcoders] Re: Line Chart, I have a X value, how can I find the Y value?
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 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 , "Mike" > 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 > > > > >
[flexcoders] Re: Line Chart, I have a X value, how can I find the Y value?
*wshh* That's the sound your post just made going by my noggin :). I was hoping there was something built into flex for this. Does anyone have a simple way of figuring this out? Thanks for responding though mike, I appreciate even if I'm not smart enough to understand it :). --- In flexcoders@yahoogroups.com, "Mike" 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 >
[flexcoders] Re: Line Chart, I have a X value, how can I find the Y value?
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, "Mike" 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 >
[flexcoders] Re: Line Chart, I have a X value, how can I find the Y value?
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