Skip to content

Box plot hover median positioning with hovermode=x #3942

@hannahker

Description

@hannahker

The hover info for a boxplot median seems to be incorrectly positioned when I set hovermode=x in my plot, as demonstrated below.

import plotly.express as px
df = px.data.tips()
df = df[df.time == "Lunch"]
fig = px.box(df, y="time", x="total_bill")
fig.update_layout(hovermode="x")
fig.show()

Screen Shot 2022-10-27 at 12 09 04 PM

Seems potentially related to plotly/plotly.js#2970? Also not sure if this belongs here or in the plotly.js repo. Happy to move if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions