Skip to content

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

Closed
@zhouyi207

Description

@zhouyi207
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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions