Skip to content

Pie chart and hover_data: multiple values are all shown under same label #2924

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

Open
Noul-Singla opened this issue Nov 21, 2020 · 0 comments
Open
Labels
bug something broken P3 backlog

Comments

@Noul-Singla
Copy link

A simple recreation code

df_2007 = px.data.gapminder().query("year==2007")

fig = px.pie(df_2007, values="gdpPercap", names="lifeExp",
                 hover_name="country", hover_data=["continent", "pop"])

fig.show()

on hover it shows
continent = continent_name, pop_value
while pop as pop = %{customdata[1]}

image

I believe this is not the expected behavior and it should work with pie like it does with scatter. If there is an alternative way, please let me know.

@Noul-Singla Noul-Singla changed the title pie and multiple input in hover_data add all values under same label Pie chart and hover_data: multiple values are all shown under same label Nov 21, 2020
@gvwilson gvwilson self-assigned this Jun 18, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added P3 backlog bug something broken labels Aug 12, 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