Area Chart

Lines over shaded areas, for totals that change over time.

Visitors
January to December 2025

Installation

  1. Add the registryOnce per project
  2. Add area-chart

Usage

AreaChartSeries draws one series. The axes, tooltip, legend and config come from Chart. Stacked series stack in the order they're written, first at the bottom.

Composition

Examples

Fills

variant fills the area with a gradient, a flat tint or hatching.

Expanded

stack="expanded" stretches each stack to full height to show shares.

Forecast

A dashed, hatched series reads as an estimate. Leave a value out of a row to break the line.

Props

AreaChart

AreaChartSeries

AreaChartSeries takes the props of Recharts' Area too, such as connectNulls.