chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Hoverline line should always find the nearest point

Open nhaugo opened this issue 9 years ago • 2 comments

The user should not need to be hovering over the actual line for the graph to select the point, it should be visible on the nearest line to the cursor. sadscroll

nhaugo avatar Sep 27 '17 17:09 nhaugo

@121watts can you show me the behavior with the old code for this, or go over the odd behavior it caused.

nhaugo avatar Sep 29 '17 00:09 nhaugo

@nhaugo for sure. We can go over it. The old code is:

https://github.com/influxdata/chronograf/blob/d7ae615e37168b2fbc8a339dd31d74a8f6d33724/ui/src/external/dygraph.js

And we are currently using this logic:

https://github.com/danvk/dygraphs/blob/64f1c4dfd7425931fcd1bd9949157c0ba6958656/src/dygraph.js#L1503

121watts avatar Sep 29 '17 01:09 121watts