youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

New modes for mouse tracking #72

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is a sugestion for next version.

If you replace lines 2847-2848 of 0.2.0alpha version with this

xpow = series[i].mouse.trackMode == 'y' ? 0 :
Math.pow(s.xaxis.scale*(data[j][0] - mouse.x), 2);
ypow = series[i].mouse.trackMode == 'x' ? 0 :
Math.pow(s.yaxis.scale*(data[j][1] - mouse.y), 2);

If you use the option trackMode: 'x', the chart only tracks x axis
movements of the mouse. 
If you use the option trackMode: 'y', the chart only tracks y axis
movements of the mouse.
Any other case, its work as usual.

Original issue reported on code.google.com by javiers...@gmail.com on 27 Jun 2009 at 11:13

GoogleCodeExporter commented 8 years ago

Original comment by fabien.menager on 20 Jul 2009 at 5:08