-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
bugsomething brokensomething broken
Description
Description
I want to have multiple traces get hover labels when I hover on one of the traces. This is similar to this example: https://plotly.com/javascript/hover-events/#coupled-hover-events
When I hover on one of the points, I get a JS error.
Steps to reproduce
- Go to this codepen
- Hover on one of the points
- Console shows error similar to:
Uncaught Error: Invalid LngLat object: (NaN, -1.1977990340856948)
Notes
The error occurs on this line:
plotly.js/src/traces/scattermap/hover.js
Line 56 in 65265d7
| var lonlatShifted = [Lib.modHalf(lonlat[0], 360) + lonShift, lonlat[1]]; |
The reason is that xval, and therefore winding and lonShift are undefined.
If I add lonShift = isNaN(lonShift) ? 0 : lonShift; just before this line, it works fine:

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugsomething brokensomething broken