Area Chart

A filled line chart for visualizing trend data over time.

Install

npx shadcn add @clearly/area-chart

Preview

Usage

import { AreaChart } from "@/components/ui/area-chart"

<AreaChart />

Every Clearly component also accepts glass (subtle·medium·strong), specular and className.

Props

PropTypeDefaultDescription
dataArray<Record<string, unknown>>Row data for the chart.
configChartConfigRecharts color/label config keyed by data field.
dataKeystring"value"Field name for the Y-axis series.
xKeystring"month"Field name for the X-axis labels.