Pie Chart
noun
say it: “PIE chart” /ˈpaɪ ˌtʃɑrt/
A circle divided into slices, each showing one part's share of a whole.
What is a pie chart?
A pie chart is a circle cut into slices, one for each part of a whole, such as each neighborhood's share of a city's recycling. It's hard to read: people compare angles and areas poorly, so slices of 18% and 21% look alike. Sorted bars of the same shares are usually easier to compare.
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.pie(shares.values, labels=shares.index) # one slice per neighborhood
In a sentence
- “He swapped the pie chart for sorted bars so the shares were easy to compare.”
- “The pie chart made 18% and 21% look the same.”
Level: Novice · More Python terms at this level
Updated