Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0Shark opened this issue Oct 15, 2024 · 0 comments
Open

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

0Shark opened this issue Oct 15, 2024 · 0 comments
Labels
bug something broken P3 backlog

Comments

@0Shark
Copy link

0Shark commented Oct 15, 2024

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

@gvwilson gvwilson added bug something broken P3 backlog labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P3 backlog
Projects
None yet
Development

No branches or pull requests

2 participants