Line Chart

A multi-series chart with an interactive glass tooltip.

Install

npx shadcn add @clearly/line-chart

Preview

Usage

import { LineChart } from "@/components/ui/line-chart"

<LineChart />

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.
xKeystring"day"Field name for the X-axis labels.
seriesArray<{ key: string; strokeWidth?: number; dotRadius?: number }>Line series; defaults to all keys in config.