plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Unable to hover in selection areas

Open nelli93 opened this issue 9 months ago • 0 comments

Environment: Windows, plotly 6.0.0

Minimum Example:

import plotly.express as px
df = px.data.gapminder().query("continent=='Oceania'")
fig = px.line(df, x="year", y="lifeExp", color="country", title="layout.hovermode='closest' (the default)")
fig.update_traces(mode="markers+lines")
fig.show()

Behavior: When using selection tools in Plotly (e.g. box select, lasso select), it's not possible to hover over data points inside the selection area. The cursor changes to a "move" cursor and only allows repositioning the selection. Outside the selection area, hovering works normally.

Image Image 1: Inside the box selection, only the move cursor is visible and hovering is not possible

Image Image 2: Outside the selection area, hovering works correctly and displays data point information

Suggestion: A potential improvement would be limiting the move cursor functionality to only the edges of the selection area, allowing users to continue hovering over data points inside the selection.

nelli93 avatar Mar 26 '25 10:03 nelli93