hoverdistance broken in 3D scatter plots (hover radius vs click radius)?
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
Hi,
I want to use plotly in interactive dashboards. With my 3D scatter plots, I noticed that it's quite confusing that the click radius is different from the hover radius: when you move the mouse inside a point's hover radius, you get the hover lines that point to the axes, but it doesn't react to clicks yet. For that, you have to go much closer.
Is there a way to change the click radius to match the hover radius?
So I tried to change the hoverdistance parameter in the layout object, but realized that it seems that hoverdistance is broken in 3D plots. Here's a working example. You will see, that changing the hoverdistance doesn't make any difference:
https://codepen.io/bolau/pen/LYvPmWw
Is this a bug, or am I doing something wrong?
Here's the link to the documentation on the hoverdistance parameter, which doesn't distinguish between 2D and 3D plots:
https://plotly.com/javascript/reference/layout/#layout-hoverdistance
Best, Boris
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先查看链接的 CodePen 复现和 layout.hoverdistance 文档,然后比较 3D 散点图中的悬停和点击行为。完成的标准是确定 hoverdistance 是否应控制所报告的 3D 行为,使实现或文档反映该结果,并处理点击半径问题。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100