HomeAreaStacked Area Chart
Area

Stacked Area Chart

Multiple area series stacked on top of each other to show cumulative totals over time.

Loading chart…
#area#stacked#cumulative#total
When to use a Stacked Area Chart

A Stacked Area Chart is ideal for developers and designers who need to display data clearly and effectively. Use this chart type when:

  • Showing volume trends over time (e.g. cumulative revenue)
  • Comparing two or more metrics with stacked areas
  • Highlighting the magnitude of change, not just direction
  • Displaying website traffic patterns over weeks or months
Tips for Recharts Stacked Area Chart
TIP 1Use gradient fills (linearGradient) to reduce visual weight at the bottom
TIP 2Stacked areas work well for showing cumulative totals
TIP 3Set fillOpacity between 0.2–0.4 to keep the chart readable
TIP 4Combine with a Line component on top for a cleaner stroke
TIP 5Use syncId to sync multiple area charts that share the same X axis
Key Recharts Props
PROPTYPEDESCRIPTION
dataarrayArray of objects with your data values
dataKeystringThe key in your data objects for area values
strokestringLine color for the top edge
fillstringFill color — use 'url(#gradientId)' for gradients
stackIdstringStack multiple areas with the same stackId
typestringCurve type: 'monotone' recommended for smooth areas
Related Charts