Skip to content

plotly-express px.treemap has no access to totals #4132

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
ouryperd opened this issue Mar 29, 2023 · 0 comments
Open

plotly-express px.treemap has no access to totals #4132

ouryperd opened this issue Mar 29, 2023 · 0 comments
Labels
feature something new P3 backlog

Comments

@ouryperd
Copy link

treemap() has no acees or properties for displaying parent values, even though the values are present in the hover data. I managed to pre-calculate the data and add it into the label property.

fig = px.treemap(shares_data,
title=tit,
path=['Type', 'Stock'],
values='Holding',
color='Growth',
color_continuous_scale=[(0, "red"), (0.33, "yellow"), (1, "green")]
)
stonks_plotly2
stonks_plotly1

@AaronStiff AaronStiff added the feature something new label Mar 30, 2023
@gvwilson gvwilson self-assigned this Jul 11, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson added the P3 backlog label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

3 participants