Back to Components

Area Chart

Charts

Area charts for visualizing volume and cumulative trends over time with smooth gradient fills.

Installation

$npx linspo-ui add area-chart
Dependencies: lucide-react

Total Volume

Last 8 periods

35,606

+15.3%
JanFebMarAprMayJunJulAug

9,800

Peak

4,451

Average

1,398

Minimum

Props

PropTypeDefaultDescription
data*AreaChartDataPoint[]Array of data points with label and value properties.
classNamestringAdditional CSS classes to apply to the container.
titlestringTitle displayed in the chart header.
metricstring"Total Volume"Label for the metric being displayed.
showStatsbooleantrueWhether to show the stats footer.
animatedbooleantrueWhether to animate on mount.
colorstring"hsl(160 60% 45%)"Color of the area fill and line.