Components

Area Chart

Show change over time with filled areas and stacked series.

Loading chart…

Visitors
MonthVisitors
Jan420
Feb580
Mar510
Apr760
May680
Jun910
Jul840
Aug1070
Sep960
Oct1180
Nov1110
Dec1360

Usage

Add one AreaSeries per measure. Use stackId to stack related series.

Composition
<Chart.Root config={config}>
  <Chart.Legend />
  <Chart.ResponsiveContainer width="100%" height={280}>
    <Chart.AreaChart data={data} animate accessibilityLayer aria-label="Monthly visitors">
      <Chart.CartesianGrid vertical={false} />
      <Chart.XAxis dataKey="period" />
      <Chart.YAxis />
      <Chart.AreaSeries dataKey="visitors" type="monotone" fillOpacity={0.22} />
      <Chart.Tooltip />
    </Chart.AreaChart>
  </Chart.ResponsiveContainer>
</Chart.Root>

Area uses explicit composition, without Line’s configured shortcuts. Place Legend outside the plot; pair Root visibility with its callback for toggles.

Curve types

Choose smooth, linear or step-after interpolation.

Loading chart…

Visitors
MonthVisitors
Jan420
Feb580
Mar510
Apr760
May680
Jun910
Jul840
Aug1070
Sep960
Oct1180
Nov1110
Dec1360

Stacked series

Matching stackId values stack desktop and mobile visitors. Legend toggles recalculate the visible stack.

Loading chart…

Visitors by device
MonthDesktopMobile
Jan310110
Feb380200
Mar340170
Apr460300
May390290
Jun520390
Jul450390
Aug580490
Sep500460
Oct610570
Nov540570
Dec650710

Materials

Choose plain, paper, clay or glow.

Loading chart…

Visitors
MonthVisitors
Jan420
Feb580
Mar510
Apr760
May680
Jun910
Jul840
Aug1070
Sep960
Oct1180
Nov1110
Dec1360

API reference

Focused props for the composition above; upstream links cover additional native options.

AreaChart

Compose inside Root and a sized ResponsiveContainer.

PropTypeDefaultDescription
dataRow[]—Observations for explicit series and axes.
animateboolean | AreaAnimationfalseChart-owned entrance and inspection motion; respects reduced motion.
accessibilityLayerbooleantrue in RechartsEnables arrow-key inspection. Set explicitly in these components.
aria-label / aria-labelledbystring—Accessible plot name.
margin{ top?: number; right?: number; bottom?: number; left?: number }5 each sideSpace around plot parts.
stackOffset"none" | "expand" | "wiggle" | "silhouette" | "sign" | "positive""none"Native stack calculation. "expand" normalizes stacks; labels and tooltip formatting stay consumer-owned.
childrenReactNode—Explicit axes, areas, grid and tooltip.

See Recharts AreaChart.

AreaSeries

String dataKey values identify config entries. Use seriesKey for numeric keys or accessors when controlling visibility.

PropTypeDefaultDescription
dataKeystring | number | ((row: Row) => unknown)RequiredValue field or accessor.
seriesKeystringString dataKeyMetadata and visibility identity.
type"basis" | "basisClosed" | "basisOpen" | "bumpX" | "bumpY" | "bump" | "linear" | "linearClosed" | "natural" | "monotoneX" | "monotoneY" | "monotone" | "step" | "stepBefore" | "stepAfter" or custom curve function"linear"Native curve interpolation.
stackIdstring | number—Shared identity for stacked series.
material"plain" | "paper" | "clay" | "glow""plain"Area finish; explicit shape or filter takes precedence.
stroke / fillstringConfig colorOverride outline or fill separately.
fillOpacitynumber0.6 in RechartsFill transparency; shown components set it explicitly.
connectNullsbooleanfalseConnect missing values instead of leaving gaps.
hidebooleanfalseHide a series; Root selection also applies.

Numbers and two-value ranges retain native geometry. AreaChart owns motion; per-series animation is disabled. See Recharts Area and material support.

Shared components

Root, SeriesConfig, Legend, Tooltip, Axes and grid, ResponsiveContainer.