plotly / plotly/react-plotly.js
OnUnhover being called when it shouldn't
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 138
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 4
描述
I'm not happy with the builtin tooltip for the polar chart, so I'm attempting to make my own, however I'm having issues with it hiding as soon as it should show, and form what I can tell this is because it's running OnUnhover on every redraw (while the cursor is anywhere near the chart)
I've attempted to set up a simple example here
https://codepen.io/tim-logan/pen/qBqOeMZ?editors=1010
Line 72/73 can be flipped in/out with comments to see the result either in console or directly on the plot.
I may just be doing something wrong, but it looks like a bug to me :)
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 CodePen 复现开始,尤其关注第 72/73 行,并跟踪当光标停留在图表附近时,极坐标图重绘会在何时触发 OnUnhover。完成的标准是:自定义 tooltip 在重绘期间保持可见,并且只有当指针实际离开相关图表元素时才运行 OnUnhover。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, react
- 领域
- data-visualization, frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100