Copy order : int
names : str
values : str
data : Union [ str , DataFrame , List [ Dict ]]
Copy 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
Copy data = [
{ 'name' : 'Matcha Latte' , 'value' : 78 },
{ 'name' : 'Milk Tea' , 'value' : 17 },
{ 'name' : 'Cheese Cocoa' , 'value' : 18 },
{ 'name' : 'Walnut Brownie' , 'value' : 9 },
]
s . plt . pie (
data = data, names = 'name' , values = 'value' ,
order = 0 , rows_size = 2 , cols_size = 12 ,
)
2. Customization And Context
Copy data = [
{ 'name' : 'Matcha Latte' , 'value' : 78 },
{ 'name' : 'Milk Tea' , 'value' : 17 },
{ 'name' : 'Cheese Cocoa' , 'value' : 18 },
{ 'name' : 'Walnut Brownie' , 'value' : 9 },
{ 'name' : 'Buckeye Brownie' , 'value' : 12 },
]
s . plt . pie (
data = data, names = 'name' , values = 'value' ,
order = 0 , rows_size = 2 , cols_size = 6 ,
padding = '0,0,0,2' , title = 'Breakfast Delivery Preferences' ,
)