Allow access data on the `plotly_doubleclick` event
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
The double click event will trigger the single click event as well as reported in https://github.com/plotly/plotly.js/issues/1546. But the issue has been closed.
Here's the example showing the issue:
https://codepen.io/Lexachoc/pen/qEWZJxb
Only the single click event plotly_click can access the data.
There are usecases to access the data points on double click e.g., in https://github.com/plotly/react-plotly.js/issues/257.
It would be nice to allow access the data also on double click. And maybe also to avoid triggering a single-click event. (which will solve the issue report in https://github.com/plotly/plotly.js/issues/1546)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 CodePen 复现以及所引用的 plotly.js issue 1546 和 react-plotly.js issue 257 开始。跟踪 plotly_click 和 plotly_doubleclick 的分发方式,然后验证双击处理程序可以访问相关数据,并且预期的单击行为已经定义。完成的标准是,所请求的双击数据访问能够正常工作,并且交互行为已由测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100