From: Ben G. <jes...@je...> - 2008-07-01 22:00:44
|
Take a look at PhysicalAxis.WorldToPhysical. This will tranlate a world (data) coordinate to the corresponding physical (screen) coordinate. You can access the PhysicalAxis objects that were used for the most recent Draw operation via PlotSurface2D.PhysicalXAxis1Cache (along with the other 3 axises). To get a list of the data points themselves, I believe you can use CandleDataAdapter. On Tue, Jul 1, 2008 at 4:41 PM, MT <mt...@ya...> wrote: > I am trying to create my own "hit test" but I cant figure out how figure > out what the coordinates are of each individual data point in the series. > Any ideas where that info is stored? > > majid > > ----- Original Message ---- > From: Ben Gruver <jes...@je...> > To: npl...@li... > Sent: Tuesday, July 1, 2008 3:30:42 PM > Subject: Re: [Nplot-devel] mouseover text on plot > > Ah, ok. I see your difficulty. I don't recall seeing any built-in way to > determine if the cursor is over a data point. (Although that doesn't mean > it's not there :)). > > Assuming it's not, you'll probably have to do your own "hit test" to > determine this. There are various functions which allow you to translate > between world and physical coordinates, which you may find helpful. > > I'm kinda surprised it doesn't have support for that.. I may just not have > run across that functionality yet :) > > > On Tue, Jul 1, 2008 at 3:00 PM, MT <mt...@ya...> wrote: > > > Thanks Ben for replying. I did see that function in > Windows.PlotSurface2D. > > However, how would I know if I am mousing over a chart series or not? > In > > other words the mouse over will be different if I am hovering over a > > candlestick vs if I am in empty space in the chart (i.e. not hovering > over a > > series) > > > > Any ideas? > > > > > > > > ----- Original Message ---- > > From: Ben Gruver <jes...@je...> > > To: npl...@li... > > Sent: Tuesday, July 1, 2008 2:33:04 PM > > Subject: Re: [Nplot-devel] mouseover text on plot > > > > I think you'll need to modify the nplot source to do this, but it > shouldn't > > be difficult. Take a look at Windows.PlotSurface2D.DoMouseMove. > > > > > > > > On Tue, Jul 1, 2008 at 1:47 PM, MT <mt...@ya...> wrote: > > > > > > > > Is there a way to change the mouseover text when hovering over a series > > > element. For example, if the mouse is over a candlestick, I would like > > to > > > display the high, low, open, close, volume, date value, etc.. It seems > > that > > > i can only display world coordinates. > > > > > > Thanks > > > > > > mt > > > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > > > Studies have shown that voting for your favorite open source project, > > > along with a healthy diet, reduces your potential for chronic lameness > > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > > _______________________________________________ > > > Nplot-devel mailing list > > > Npl...@li... > > > https://lists.sourceforge.net/lists/listinfo/nplot-devel > > > > > ------------------------------------------------------------------------- > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > > Studies have shown that voting for your favorite open source project, > > along with a healthy diet, reduces your potential for chronic lameness > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > _______________________________________________ > > Nplot-devel mailing list > > Npl...@li... > > https://lists.sourceforge.net/lists/listinfo/nplot-devel > > > > > > > > > > ------------------------------------------------------------------------- > > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > > Studies have shown that voting for your favorite open source project, > > along with a healthy diet, reduces your potential for chronic lameness > > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > > _______________________________________________ > > Nplot-devel mailing list > > Npl...@li... > > https://lists.sourceforge.net/lists/listinfo/nplot-devel > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Nplot-devel mailing list > Npl...@li... > https://lists.sourceforge.net/lists/listinfo/nplot-devel > > > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Nplot-devel mailing list > Npl...@li... > https://lists.sourceforge.net/lists/listinfo/nplot-devel > |