Skip to content

[sunburst] the problem of the values and color is the same variable #5145

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

Closed
zhouyi207 opened this issue Apr 17, 2025 · 1 comment
Closed

Comments

@zhouyi207
Copy link

import plotly.express as px
import numpy as np
df = px.data.gapminder().query("year == 2007")
fig = px.sunburst(df, path=['continent', 'country'], values='pop',
                  color='pop', 
                  color_continuous_scale='RdBu',)
fig.show()

what's the mean of Asia pop_sum and pop ?? I can't get it ?

@zhouyi207 zhouyi207 changed the title sunburst the problem of the values and color is the same variable [sunburst] the problem of the values and color is the same variable Apr 17, 2025
@gvwilson
Copy link
Contributor

Hi - we are trying to keep the issues and PRs in Plotly's public repositories tidy so that we can focus on things that are most important to our community. For tech support and "how-to" questions, please post in our community forum https://community.plotly.com/. Thank you - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants