Skip to content

Box plot hover median positioning with hovermode=x #3942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hannahker opened this issue Oct 27, 2022 · 1 comment
Closed

Box plot hover median positioning with hovermode=x #3942

hannahker opened this issue Oct 27, 2022 · 1 comment

Comments

@hannahker
Copy link

hannahker commented Oct 27, 2022

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.

@hannahker
Copy link
Author

Closing this as applying hovermode=x to a boxplot isn't logical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant