"use client" import { TrendingUp } from "lucide-react" import { Label, PolarGrid, PolarRadiusAxis, RadialBar, RadialBarChart, } 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 radial chart with stacked sections" const chartData = [{ month: "january", mobile: 570, desktop: 1260 }] const chartConfig = { desktop: { label: "Desktop", color: "var(--chart-1)", }, mobile: { label: "Mobile", color: "var(--chart-2)", }, } satisfies ChartConfig export function ChartRadialStacked() { const totalVisitors = chartData[0].desktop + chartData[0].mobile return ( Radial Chart - Stacked January - June 2024 } />
Trending up by 5.2% this month
Showing total visitors for the last 6 months
) }