[BUG] hovermode='x' or 'x-unified' displays information about nearby traces with different 'x' value
See original GitHub issueDescribe the bug
When using hovermode='x unified'
or hovermode='x'
, I see nearby data from different traces
Expected behavior
I would like to only obtain data that has the same x
value
Screenshots
In this example, I have a trace “price”, a trace “upper” and a trace “lower”. At some point, the traces “upper” and “lower” end, and in the next day, new “upper” and “lower” traces begin.
In this screenshot, the expected behavior. I have three traces and it shows the correct data
The problem appears when I hover near the end of one trace and the begin of the next one. Note that the first trace ends on June 26th, the second trace begins on June 27th.
To overcome this problem at least partly I have set hoverdistance=1
. The problem disappears when I zoom in enough that the traces are well separated
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (8 by maintainers)
Top GitHub Comments
It would be fixed by #5668.
2.0 was released this morning 😃