ChartRadarLabelCustom() — ui Function Reference
Architecture documentation for the ChartRadarLabelCustom() function in chart-radar-label-custom.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD dd1f7ab6_bccc_36ea_0a53_0123d3183d54["ChartRadarLabelCustom()"] 11f19ecf_9260_a6f0_9fe8_107ec34daca4["chart-radar-label-custom.tsx"] dd1f7ab6_bccc_36ea_0a53_0123d3183d54 -->|defined in| 11f19ecf_9260_a6f0_9fe8_107ec34daca4 style dd1f7ab6_bccc_36ea_0a53_0123d3183d54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/charts/chart-radar-label-custom.tsx lines 43–120
export function ChartRadarLabelCustom() {
return (
<Card>
<CardHeader className="items-center pb-4">
<CardTitle>Radar Chart - Custom Label</CardTitle>
<CardDescription>
Showing total visitors for the last 6 months
</CardDescription>
</CardHeader>
<CardContent className="pb-0">
<ChartContainer
config={chartConfig}
className="mx-auto aspect-square max-h-[250px]"
>
<RadarChart
data={chartData}
margin={{
top: 10,
right: 10,
bottom: 10,
left: 10,
}}
>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent indicator="line" />}
/>
<PolarAngleAxis
dataKey="month"
tick={({ x, y, textAnchor, value, index, ...props }) => {
const data = chartData[index]
return (
<text
x={x}
y={index === 0 ? y - 10 : y}
textAnchor={textAnchor}
fontSize={13}
fontWeight={500}
{...props}
>
<tspan>{data.desktop}</tspan>
<tspan className="fill-muted-foreground">/</tspan>
<tspan>{data.mobile}</tspan>
<tspan
x={x}
dy={"1rem"}
fontSize={12}
className="fill-muted-foreground"
>
{data.month}
</tspan>
</text>
)
}}
/>
<PolarGrid />
<Radar
dataKey="desktop"
fill="var(--color-desktop)"
fillOpacity={0.6}
/>
<Radar dataKey="mobile" fill="var(--color-mobile)" />
</RadarChart>
</ChartContainer>
</CardContent>
<CardFooter className="flex-col gap-2 text-sm">
<div className="flex items-center gap-2 leading-none font-medium">
Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />
</div>
<div className="text-muted-foreground flex items-center gap-2 leading-none">
January - June 2024
</div>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ChartRadarLabelCustom() do?
ChartRadarLabelCustom() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/charts/chart-radar-label-custom.tsx.
Where is ChartRadarLabelCustom() defined?
ChartRadarLabelCustom() is defined in apps/v4/registry/new-york-v4/charts/chart-radar-label-custom.tsx at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free