plotly / plotly/plotly.py

Unable to hover in selection areas

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

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

feature P2
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

Environment: Windows, plotly 6.0.0

Minimum Example:

import plotly.express as px
df = px.data.gapminder().query("continent=='Oceania'")
fig = px.line(df, x="year", y="lifeExp", color="country", title="layout.hovermode='closest' (the default)")
fig.update_traces(mode="markers+lines")
fig.show()

Behavior:
When using selection tools in Plotly (e.g. box select, lasso select), it's not possible to hover over data points inside the selection area. The cursor changes to a "move" cursor and only allows repositioning the selection. Outside the selection area, hovering works normally.

Image
Image 1: Inside the box selection, only the move cursor is visible and hovering is not possible

Image
Image 2: Outside the selection area, hovering works correctly and displays data point information

Suggestion:
A potential improvement would be limiting the move cursor functionality to only the edges of the selection area, allowing users to continue hovering over data points inside the selection.

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

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

はじめの一歩

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

調査の方向性

提供された Python の最小例を Windows 上で Plotly 6.0.0 とともに実行し、ボックス選択および投げ縄選択とのインタラクションを再現してください。例の Figure 表示から選択とホバーの動作を追跡し、その後、選択範囲内のポイントでホバー情報を表示できる一方、選択範囲の境界では選択範囲の移動を引き続き行えることを確認してください。

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

評価

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

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

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