plotly / plotly/plotly.py

Unable to hover in selection areas

Open
#5,114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature P2
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

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
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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the supplied Python minimum example with Plotly 6.0.0 on Windows and reproduce the interaction with box and lasso selection. Trace the selection and hover behavior from the example's figure display, then verify that points inside a selection can show hover information while selection movement remains available at the selection boundary.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.