Part-to-Whole Charts
Pie
src.dx.plotting.dex.basic_charts.pie(df, y, split_slices_by=None, show_total=True, pie_label_type='rim', pie_label_contents='name', return_view=False, **kwargs)
Generates a DEX pie plot from the given DataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
df |
The DataFrame to plot. |
required | |
y |
str
|
The column to use for the slice size. |
required |
split_slices_by |
Optional[str]
|
The column to use for splitting the slices. If not provided, slices will be split and sized by |
None
|
show_total |
bool
|
Whether to show the total. |
True
|
pie_label_type |
DEXPieLabelType
|
The pie label type to use:
- |
'rim'
|
pie_label_contents |
DEXPieLabelContents
|
The pie label contents to use:
- |
'name'
|
return_view |
bool
|
Whether to return a |
False
|
**kwargs |
Additional keyword arguments to pass to the view metadata. |
{}
|
Source code in src/dx/plotting/dex/basic_charts.py
Donut
Coming soon!
Sunburst
Coming soon!
Treemap
Coming soon!
Partition
Coming soon!