Boxplot hoverinfo/hovertext fails to take

未关闭
#7,318 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
javascript

调研方向

从链接的 CodePen 复现开始,将箱线图的行为与使用 hovertemplate 和 text 以及 hoverinfo 的散点图示例进行比较。阅读箱线图参考文档以及相关 issue #5706 和 plotly.py #3334。当箱线图的悬停内容可以按预期进行自定义,或已明确记录已知限制时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

bug P3

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.

主要语言
JavaScript
星标
18.3k
派生
2k
平均合并
2 天 12 小时
30 天内合并 PR
28

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

plotly/plotly.js 的其他 Issue

查看 plotly/plotly.js 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。