Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Hover data not showing correctly for px.scatter inside go.FigureWidget

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

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

評価

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

調査の方向性

まず、指定された Python、Plotly、ipywidgets のバージョンを使用し、Jupyter Notebook で go.FigureWidget にラップした px.scatter によって報告された動作を再現します。同じ px.scatter を go.Figure に渡した場合と比較し、hover_data がどのように表現されるかを調べます。hover ボックスにリテラルな %{customdata[0} というテキストではなく column_in_df の値が表示されれば完了です。

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

説明

bug P3
Environment requirements

Python 3.11 on Linux, in Jupyter Notebook inside VSCode.

Extensions:
ms-toolsai.jupyter v2024.1.1

Packages:
plotly: 5.24.1
ipywidgets: 8.1.5
jupyterlab 3.6.8

Issue description

Hello, I'm having this issue where the hover data doesn't seem to show correctly, but it instead shows "%{customdata[0}" on the hover box.

fig_scatter = go.FigureWidget(px.scatter(df,
x='some_column1', y='some_column2',
title=f'Scatterplot',
hover_data=['column_in_df']
))

If I have the px.scatter plotted using a go.Figure directly it works but with go.FigureWidget it doesn't.

x and y columns show on the hover data, while this extra column_in_df doesn't even though it's also part of the df.

Let me know if any additional information is needed. Any help is appreciated, thank you!

image

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

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

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

はじめの一歩

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

plotly/plotly.py のほかの issue

plotly/plotly.py の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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