Skip to content

x hover label hidden when using hoversubplots='axis' and hovermode='x' #7184

Open
@Rangowo

Description

@Rangowo

Hi,
When the hovermode is set to 'x' and the hoversubplots='axis' option is used, the x label can be hidden by the labels of other subplots. This issue can also be found in the plotly python documentation, as shown below:
plotly_doc In this CodePen, the problem arise when hovering the first point of the first subplot or the last point on the middle subplot.

I believe it would make more sense to stick the x label at the bottom subplot, regardless of which subplot is hovered over, especially when the spike line is enabled. I implemented this, and here is what it looks like in my use case:
Solution

Please let me know what you think.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3backlogbugsomething broken

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @gvwilson@emilykl@Rangowo

    Issue actions

      x hover label hidden when using `hoversubplots='axis'` and `hovermode='x'` · Issue #7184 · plotly/plotly.js