Skip to main contentSkip to solution

Which of the following are valid customization of pie chart?

(A) Explode

(B) Whiskers

(C) Autopct

(D) legend

Solution

✅ Correct Option: 1

In Matplotlib, a pie chart can be customized with explode (pulls a wedge out of the pie), autopct (shows percentage labels on the wedges) and legend (adds a legend for the wedges).


Whiskers (B): these belong to box plots, the lines extending from the box, and are not a pie chart feature. This is why Options 2, 3 and 4 are wrong.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question