-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Hover on fills #673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hover on fills #673
Changes from 1 commit
43e8d30
8aa4397
876bd1d
2018a74
c7a9dd5
5552c77
ffd56c7
dddb6e1
1931102
47d2df8
025b788
1a685d4
f22fac8
ba77f5b
1d1a0f7
aec4c95
1e86eb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
var Lib = require('../../lib'); | ||
var Fx = require('../../plots/cartesian/graph_interact'); | ||
var constants = require('../../plots/cartesian/constants'); | ||
var ErrorBars = require('../../components/errorbars'); | ||
var getTraceColor = require('./get_trace_color'); | ||
var Color = require('../../components/color'); | ||
|
@@ -59,7 +60,7 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode) { | |
|
||
Lib.extendFlat(pointData, { | ||
// never let a 2D override 1D type as closest point | ||
distance: Fx.MAXDIST + 10, | ||
distance: constants.MAXDIST + 10, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as heatmap - other types will return a distance that's no bigger than There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Parity with heatmaps is fine for now. Thanks for the clarification. 👍 |
||
x0: x0, | ||
x1: x1, | ||
y0: y0, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etpinard I didn't notice you fixed this issue in #655 too - but when I merged master back in I used your version, which is cleaner.