Boxplot hoverinfo/hovertext fails to take
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.3k
- 派生
- 2k
- 平均合并
- 2 天 12 小时
- 30 天内合并 PR
- 28
描述
Hello! I'm trying to customize the hover behavior of a box plot, and it doesn't seem to be working in the way I'd expect.
Reproduction of the issue here: https://codepen.io/lswainemoore/pen/MYgJQJp
In the first two plots, I've tried the two methods that I'd expect to work based on the documentation and other plot types. In A, which uses the hovertemplate method that works for scatter C, the original hovers are unchanged. In B, which uses the text + hoverinfo method that works for scatter D, the hovers disappear. The style of the hovers is customizable via layout, but content seems not to be.
I see some mention of this issue here / here (in python, though I trust the issue is the same), but no resolution yet. Hopefully my reproduction above is helpful for making progress on this! If a fix isn't possible in the short term, it would be nice to confirm that this is a known issue at least, and that I'm not just holding it wrong.
Appreciate any thoughts and help with this.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 CodePen 复现开始,将箱线图的行为与使用 hovertemplate 和 text 以及 hoverinfo 的散点图示例进行比较。阅读箱线图参考文档以及相关 issue #5706 和 plotly.py #3334。当箱线图的悬停内容可以按预期进行自定义,或已明确记录已知限制时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100