We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Pie Charts

A pie chart represents data as slices of a circle, showing proportions of a whole. Each slice represents a category's share of the total.

Pie charts work best when you have a small number of categories (ideally 5 or fewer) and want to show how each part contributes to the whole.

Pie charts get a bad rap in the data viz community, but they're perfectly fine for simple proportions. Just don't use them for comparing similar-sized slices – that's where they fall apart.

When to Use Pie Charts

  • Showing market share or revenue split
  • Displaying category breakdowns (like sales by store type)
  • Visualizing budget allocations

When NOT to Use Pie Charts

  • When you have more than 5–6 categories
  • When slices are nearly the same size (hard to compare)
  • When you need precise comparisons (use a bar chart instead)

Assignment

Save the project and, from the course directory, submit the CLI tests.