Skip to content

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

Closed
@lucascibona

Description

@lucascibona

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions