plotly / plotly/plotly.js

hover is not displayed in the case of overflow

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

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

bug P3
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

See for example https://codepen.io/emmanuelle-plotly/pen/GRNJevo : the hover information (created here with a hovertemplate, not sure if it matters) is very long and the resulting hover box would be larger than the figure height. However, nothing is displayed at all for hover, which is not the expected behaviour I think (probably one cannot scroll, so should it be clipped?). The problem disappears when the text to be displayed is shorter.

For Python users, here is a code snippet to experiment with to reproduce the problem:

import plotly.express as px
n_lines = 30
long_hover_text = 'bla bla bla bla bla <br>'* n_lines
df_dict = {'x':[1, 2, 3], 'y':[1, 2, 3], 'text':[long_hover_text,]*3}
fig = px.scatter(df_dict, x='x', y='y', hover_data=['text']
                )
fig.show()

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

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

はじめの一歩

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

調査の方向性

リンクされている CodePen または提供されている Python スニペットで問題を再現し、長い hovertemplate テキストと figure の高さのオーバーフローに焦点を当てます。その再現から hover の動作を追跡し、何も表示されない状態ではなく、hover 情報が利用可能な切り取られた形式またはその他の視認可能な形式で表示されることを完了条件とします。

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

評価

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

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

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