Implement `hoveron: 'fills'` for scattergl and scatterpolargl
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
During a discussion in the plotly.py forums in came up that the hoverlabel for the scatterpolar trace has a different behavior when the fill state is set to toself than when it's set to none.
CodePen: https://codepen.io/anon/pen/EpOGdX
fill: 'none' for scatterpolar

fill: 'toself' for scatterpolar

It also seems that the hoverinfo propery has no effect when fill is toself.
I did the same comparison with the scatterpolargl trace and it has the behavior that I expected:
fill: 'toself; for scatterpolargl

I don't know if this is a bug in scatterpolar or scatterpolargl, but I find the current scatterpolargl behavior (The behavior consistent with fill of none) to be more helpful.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
复现链接的 CodePen,并比较将 fill 设置为 none 和 toself 时 scatterpolar、scattergl 和 scatterpolargl 的 hover 行为。首先跟踪这些 trace 类型的 hover 处理;当 hoverlabel 和 hoverinfo 的行为与预期的 fill 行为一致,并且在现有测试结构允许的情况下添加了回归覆盖时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100