plotly / plotly/plotly.py

make all subplots display data when hovering instead of just current subplot

オープン
#4,621 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
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
)
效果还是不行
问题-信息显示

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

shared_xaxes=True を使用した make_subplots の呼び出しと、それに続く hovermode='x unified' および spikedistance=-1 を指定した update_layout の設定から始めます。最小限の複数サブプロットの例で動作を再現し、その後、1つの x 位置にホバーするとすべてのサブプロットの対応する値が表示されることを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。