Hover data not showing correctly for px.scatter inside go.FigureWidget
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 18.8k
- フォーク
- 2.8k
- 平均マージ
- 16時間 26分
- マージ済み PR(30日)
- 21
説明
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!
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、指定された Python、Plotly、ipywidgets のバージョンを使用し、Jupyter Notebook で go.FigureWidget にラップした px.scatter によって報告された動作を再現します。同じ px.scatter を go.Figure に渡した場合と比較し、hover_data がどのように表現されるかを調べます。hover ボックスにリテラルな %{customdata[0} というテキストではなく column_in_df の値が表示されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- jupyter-notebook, python
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100