"use client" import { TrendingUp } from "lucide-react" import { Area, AreaChart, CartesianGrid, XAxis } from "recharts" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig, } from "@/registry/new-york-v4/ui/chart" export const description = "A stacked area chart with expand stacking" const chartData = [ { month: "January", desktop: 186, mobile: 80, other: 45 }, { month: "February", desktop: 305, mobile: 200, other: 100 }, { month: "March", desktop: 237, mobile: 120, other: 150 }, { month: "April", desktop: 73, mobile: 190, other: 50 }, { month: "May", desktop: 209, mobile: 130, other: 100 }, { month: "June", desktop: 214, mobile: 140, other: 160 }, ] const chartConfig = { desktop: { label: "Desktop", color: "var(--chart-1)", }, mobile: { label: "Mobile", color: "var(--chart-2)", }, other: { label: "Other", color: "var(--chart-3)", }, } satisfies ChartConfig export function ChartAreaStackedExpand() { return ( Area Chart - Stacked Expanded Showing total visitors for the last 6months value.slice(0, 3)} /> } />
Trending up by 5.2% this month
January - June 2024
) }