ChartLineLabel() — ui Function Reference
Architecture documentation for the ChartLineLabel() function in chart-line-label.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7026e72b_e83a_1cb5_cae1_5b3fe119929e["ChartLineLabel()"] 93b85226_46e7_985d_3db3_80eb02056a9e["chart-line-label.tsx"] 7026e72b_e83a_1cb5_cae1_5b3fe119929e -->|defined in| 93b85226_46e7_985d_3db3_80eb02056a9e style 7026e72b_e83a_1cb5_cae1_5b3fe119929e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/new-york-v4/charts/chart-line-label.tsx lines 43–105
export function ChartLineLabel() {
return (
<Card>
<CardHeader>
<CardTitle>Line Chart - Label</CardTitle>
<CardDescription>January - June 2024</CardDescription>
</CardHeader>
<CardContent>
<ChartContainer config={chartConfig}>
<LineChart
accessibilityLayer
data={chartData}
margin={{
top: 20,
left: 12,
right: 12,
}}
>
<CartesianGrid vertical={false} />
<XAxis
dataKey="month"
tickLine={false}
axisLine={false}
tickMargin={8}
tickFormatter={(value) => value.slice(0, 3)}
/>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent indicator="line" />}
/>
<Line
dataKey="desktop"
type="natural"
stroke="var(--color-desktop)"
strokeWidth={2}
dot={{
fill: "var(--color-desktop)",
}}
activeDot={{
r: 6,
}}
>
<LabelList
position="top"
offset={12}
className="fill-foreground"
fontSize={12}
/>
</Line>
</LineChart>
</ChartContainer>
</CardContent>
<CardFooter className="flex-col items-start gap-2 text-sm">
<div className="flex 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 leading-none">
Showing total visitors for the last 6 months
</div>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ChartLineLabel() do?
ChartLineLabel() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/charts/chart-line-label.tsx.
Where is ChartLineLabel() defined?
ChartLineLabel() is defined in apps/v4/registry/new-york-v4/charts/chart-line-label.tsx at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free