Pie charts represent parts-of-a-whole percentage breakdowns. Adding an explode offset or center hole creates modern donut visualizations.
Slicing a circular pizza into wedges according to proportional appetite shares.
`autopct='%1.1f%%'` formats slices with 1 decimal place followed by a percent sign.
plt.pie(values, autopct='%1.1f%%')`explode=[0.1, 0, 0]` offsets the first wedge outward radially from the center circle.
plt.pie(values, explode=[0.1, 0, 0])Avoid the top errors and bad plotting practices that trip up new Python developers
Switch from abstract numbers to relatable Cricket, Cinema & Business charts
Write Matplotlib code to solve the objective and see your live plot render
Create a pie chart for `shares=[60, 25, 15]` with `labels=['Cat A', 'Cat B', 'Cat C']` and `autopct='%1.0f%%'`.
✓ plt.pie✓ autopctTest your understanding to unlock the lesson completion badge