Skip to main content
The AreaChart component displays quantitative data as filled areas. It’s useful for showing trends and cumulative totals over time.

Basic area chart

Stacked area chart

Areas with the same stackId will be stacked on top of each other.

Area types

Different interpolation types for the area curve.

Fill opacity and gradients

With dots

Area with labels

Connect nulls

Handle null or undefined values in the data.
Set connectNulls={true} to draw the area across null values. By default, gaps will appear.

Multiple areas (non-stacked)

Percent stacked area

Common pitfalls

  • Overlapping areas: When using multiple non-stacked areas, set fillOpacity to see all areas clearly.
  • Missing fill: Both stroke and fill props should be set for proper area rendering.
  • Stacking: Use the same stackId on all areas that should be stacked together.
  • Tooltip event type: AreaChart only supports 'axis' tooltip event type.