-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
Description
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 1: Inside the box selection, only the move cursor is visible and hovering is not possible

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.
Reactions are currently unavailable