question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] hovermode='x' or 'x-unified' displays information about nearby traces with different 'x' value

See original GitHub issue

Describe 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 Screenshot 2020-04-23 at 18 20 14 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. Screenshot 2020-04-23 at 18 20 25 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 Screenshot 2020-04-23 at 18 20 35

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
archmojcommented, May 20, 2021

It would be fixed by #5668.

0reactions
nicolaskruchtencommented, Jun 7, 2021

2.0 was released this morning 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hovermode='x' or 'x-unified' displays information about nearby ...
I can see nearby data with a different x value on my plot while using ... displays information about nearby traces with different...
Read more >
Customizing "x unified" hover labels in plotly - Stack Overflow
Looks like one possible workaround is to add a hidden trace with that information, as below. A better solution would be welcome.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found