Pie

You can use pie charts when you want to show differences within groups based on one variable. If you have categorical data then using a pie chart is a good choice.

The Method To Use

The method is s.plt.pie()

It must contain the following input variables:

order: int
names: str
values: str
data: Union[str, DataFrame, List[Dict]]

And accepts the following input variable as optional:

title: Optional[str]
rows_size: Optional[int]
cols_size: Optional[int] 
padding: Optional[List[int]]
option_modifications: Optional[Dict]

Video demonstration of the Pie chart

Pie chart settings and usage.

Examples

1. Default Configuration

The pie chart is in the default configuration.

2. Customization And Context

Note the space before the component using padding='0,0,0,2', and size with cols_size=6.

Changing the Menu Path The menu_path can be modified.

Using the Grid

It is possible to use any number of rows.

Last updated

Was this helpful?