Vsrusis / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Option for mouseActiveRadius to only work upwards? (Area charts) #545

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When building an area chart, ie: lines that are filled down to the line 
underneath, you need it so the fill area selects the line thats above it (same 
color).

The closest option I have for this is mouseActiveRadius but unfortunately if 
its closer to the line (or area) underneath it selects that instead which is 
not what I want at all. If im in area yellow then it should only select line 
yellow and for this to work mouseActiveRadius should use the radius from above 
not from below. I'm sure this is quite easy to add but im having trouble myself 
if anybody has a hack or another idea I would be greatful.

My chart is here http://goo.gl/257Kf for anybody who wants to play around with 
it.

-In the image i uploaded you can clearly see my crosshair is in the purple 
zone, but because the green datapoint is closest it selects that instead.

Thanks all in advance

Original issue reported on code.google.com by jase.wil...@gmail.com on 2 Jun 2011 at 10:17

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 8 May 2012 at 8:23