Bklit UI
examplearea-chart-examplesource: ok · hit
Area Chart Example
Composable area-chart demo for Open in v0
npx shadcn add "https://ui.bklit.com/r/area-chart-example.json"free
No selection tags yet — empty means no evidence, not lack of support.
Dependencies
Bundle weight · mediumanimationmotion
Registry dependencies
@bklit/area-chart@bklit/grid@bklit/x-axis@bklit/chart-tooltip
Files2 · source cached 10/9/2026, 11:29:46 AM
registry/examples/area-chart.tsx
"use client"
// In your app (monorepo/npm): import { AreaChart, Area, Grid, XAxis, ChartTooltip } from "@bklitui/ui/charts"
import { AreaChart, Area, Grid, XAxis, ChartTooltip } from "@/components/charts"
import { curveNatural } from "@visx/curve";
const chartData = [
{ date: new Date("2024-01-01"), desktop: 186 },
{ date: new Date("2024-02-01"), desktop: 305 },
{ date: new Date("2024-03-01"), desktop: 237 },
{ date: new Date("2024-04-01"), desktop: 73 },
{ date: new Date("2024-05-01"), desktop: 209 },
{ date: new Date("2024-06-01"), desktop: 214 },
];
export default function Component() {
return (
<main className="flex min-h-svh w-full items-center justify-center p-6 md:p-10">
<div className="w-full max-w-3xl">
<AreaChart data={chartData} animationDuration={1100}>
<Grid horizontal />
<Area dataKey="desktop" curve={curveNatural} strokeWidth={2.5} fillOpacity={0.4} />
<XAxis />
<ChartTooltip />
</AreaChart>
</div>
</main>
)
}
registry/examples/area-chart-index.ts
// biome-ignore-all lint/performance/noBarrelFile: v0 registry example barrel for shadcn install
export { AreaChart } from "./area-chart";
export { Area } from "./area";
export { Grid } from "./grid";
export { XAxis } from "./x-axis";
export { ChartTooltip } from "./tooltip";