Course contentsShow
← Data Science
Lesson 1227 of 2,14531. Data Visualization PrinciplesFree lesson

Area Charts and Stacked Area Charts

Display cumulative totals over time and part-to-whole relationships with area charts and their stacked variants.

Area Charts and Stacked Area Charts

What you'll learn: How to use area charts to display cumulative totals over time and visualize part-to-whole relationships effectively.

What Are Area Charts?

An area chart is essentially a line chart with the space between the line and the x-axis filled with color. Think of it like a histogram for continuous time series data—it emphasizes the magnitude of change over time by filling the area beneath the curve. This makes area charts particularly good at showing cumulative totals, such as total sales over months or accumulated rainfall over a season.

The filled area helps viewers grasp the "volume" or "weight" of the data more intuitively than a simple line would.

Stacked Area Charts

A stacked area chart layers multiple area series on top of each other to show both individual contributions and the combined total. Imagine stacking colored blankets on a bed—each blanket represents a category, and the height of the pile shows the total across all categories.

This makes stacked area charts ideal for part-to-whole relationships over time. For example, you could show revenue by product category across quarters, where each product is a colored layer and the top edge represents total revenue.

When to Use Them

  • Simple area chart: When you want to emphasize cumulative growth or magnitude over time
  • Stacked area chart: When you want to show how different categories contribute to a changing total over time

Important Considerations

Reading individual categories in stacked area charts can be challenging because only the bottom layer sits on a stable baseline—upper layers "float" and require visual estimation. If precise comparisons matter, consider using grouped bar charts or line charts instead.

Key Takeaway: Area charts emphasize cumulative magnitude over time through filled regions, while stacked area charts layer these regions to reveal both individual contributions and combined totals—perfect for part-to-whole relationships across time periods.