Sunburst Treemap Tutorial - Plotly

preview_player
Показать описание
Learn to create the Sunburst Diagram in python to visualize hierarchical data. I'll share the source Code and link to data. The sunburst is often referred to as a radial tree map. Under 30 lines of code, and using Plotly Express, we will create multiple Sunbursts, change the styling, hover, color, and much more. Links Below...

View my book - The Book of Dash:

Challenge solution uploaded to first comment below.
Рекомендации по теме
Комментарии
Автор

Wow, it was amazing... was trying to make a treemap at work and spent an entire afternoon at Google - then I found out this video and boom, in less than 30 minutes it was great.
I am looking forward for your book!!! Keep up with the good work

rafaelcapellopastore
Автор

Your tutorials on Plotly are just awesome! Thanks for sharing! 👌🎉

aminghanooni
Автор

Bro, I really appreciate your hardwork, and your helpful contents. Your tutorials are just perfect and in detail. I have learnt a lot from your tutorials, and I genuinely love all of the contents. Thanks bro

akhrorjonpulatov
Автор

Great Tutorial! For me it was 98% of time spend on cleaning the data from my own Excel file and 2% of fun with modyfing the sunburst. It is very cool and useful tutorial!

SmokedPOL
Автор

Bro, We can't thank you enough for such great content; Keep up the awesome work 😊

stoufa
Автор

Excellent tutorial, thank u so much !

papayatmadiop
Автор

Quality content ! Thank you kindly < 3

J_Arthur_
Автор

excellent video tutorial, I'll be glad to share it around, is very well done, congrats again

GiuseppeSerraonline
Автор

How to print the values of the inner circle in the outside to each corresponding sub category?

ArpanTamrakar-lb
Автор

Great tutorial! It's been so helpful for me at work to visualise a complicated spreadsheet.

One point that I have noticed with my own sunburst, and with some of yours, often the total percentage doesn't add to 100%, going instead to either 99% or 101%. I assume this is a rounding error but do you know a quick fix for this to guarantee 100% every time?

Thanks again for your great tutorial.

benarnold
Автор

Hi Adam, thanks for such nice detailed tutorial. I am following each tutorial and learning fast . But is it possible to you to have a video on “chained callbacks” and “theme” in dash. Thanks in advance 🙏

adityajawla
Автор

OMG THIS IS BRILLIANT!!! THANK YOU SO MUCH!
I have an additional question: is it possible to also add/display the percent entry into the hoverdata?

MusicNewb
Автор

Love the channel, been a lifesaver more than once.

I do have a quick q though, when I try and load the sunburst graph using dash it just loads a whitescreen (with the title and colorbar), even though the same plot works perfectly in Jupyter Notebooks. Weirdly enough it will work in Dash if I change the branchvalues parameter to 'remainder' instead of 'total', but I need to keep it as total. You have any idea how this would happen?

Thanks again for the tutoirals.

joewilliams
Автор

Hi Adam, thanks for the tutorial. Your series on Plotly is by far the best I could find for free or paid.
There something interesting I found here though. I was running this code through on Google colab and colab promptly errored out saying "TypeError: sunburst() got an unexpected keyword argument 'path'". This is weird as its literally used again and again in the documentation. When I tried to run other code snippets in the documentation on colab it gave the exact same error with sunburst chart. All this code works perfectly fine on my local machine though.
If the chart type is unsupported on colab shouldn't it say that instead of giving these kind of error messages? Any idea why this is happening

anupjoseph
Автор

@Charming Data Hi I have another question :) In the challenge problem, how does plotly determine the color of the inner wedges that aren't male/female?

CK-qhte
Автор

Is it possible to reorder the variables in the sectors of the sunburst plot?

r_pydatascience
Автор

Thanks a lot, Adam! However, I am still having difficulties with:
1. hover_data - whenever I try to select a specific label to change it to false I am getting "keyword argument repeated"?
2. giving a specific color to root - when the "Color" field is set to one of the branches and not the root.
3. Do you believe there's a way i could have multiple sunburst charts plot in one row as appose to them being showing in different rows?

rohanplaylist
Автор

Hi, could you please explain how to deal with labels parameter? I have a boolean column and want to show other strings instead of True or False. Thanks a lot

emionok
Автор

Hey, can you do a video on an actual treemap

robdawg
Автор

For some reason the legend doesn't show up for me when I do the color scale sunburst chart. Is there a way to turn this on?

CK-qhte
welcome to shbcf.ru