Part-to-whole Charts
Here we'll talk about how to plot some part-to-whole chart types in DEX using dx
.
Setup
We will be using our own built-in DataFrame generation function for these visualizations. The values you see may be different if you run the same code in a cell, but the column structure should be very similar (if not identical).
The Customized examples with more options do not necessarily represent "good" data visualization; they are just a glimpse into what settings are available to compare against the Simple examples.
Donut
Coming soon!
Partition
Coming soon!
Pie
Simple
Customized
dx.pie(
df,
y='index',
split_slices_by='keyword_column',
show_total=False,
pie_label_type='annotation',
pie_label_contents='percent',
)
Make sure you enable dx
as a pandas plotting backend first.
df.plot.pie(
y='index',
split_slices_by='keyword_column',
show_total=False,
pie_label_type='annotation',
pie_label_contents='percent',
)
Sunburst
Coming soon!
Treemap
Coming soon!