make all subplots display data when hovering instead of just current subplot
未关闭
还没有人认领这个 Issue。
feature
P3
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
【中文】
我希望 当hover在某一位置,所有子图对应的数值信息都显示出来,而不是只有当前的子图显示。
- 所有子图已经共享x轴
- 已经设置hovermode='x unified',
【Question】
I hope that when hovering over a specific position, all subplots display the corresponding value information, instead of only the current subplot.
- All subplots share the x-axis.
- hovermode='x unified' is already set.
self.figer = make_subplots(rows=nrows, cols=ncols, shared_xaxes=True,specs=specs, vertical_spacing=0.05 ) # 画布的figer
self.figer.update_layout(
# xaxis_rangeslider_visible=True,
hovermode='x unified',
spikedistance=-1
)
效果还是不行
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从使用 shared_xaxes=True 的 make_subplots 调用以及后续的 update_layout 设置开始,其中包括 hovermode='x unified' 和 spikedistance=-1。使用一个最小的多子图示例重现该行为,然后验证在一个 x 位置悬停时会显示每个子图中对应的值。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100