Unable to hover in selection areas
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 Windows 上使用 Plotly 6.0.0 运行提供的 Python 最小示例,并复现框选和套索选择的交互。跟踪示例图形显示中的选择和悬停行为,然后验证选择内的点可以显示悬停信息,同时在选择边界处仍可移动选择。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization, frontend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100