ChartBarExample() — ui Function Reference
Architecture documentation for the ChartBarExample() function in chart-example.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c4cc413b_001e_bfa9_2784_dadbeb67c0b2["ChartBarExample()"] db4385e3_ad03_edc8_f86f_bcba741693f3["chart-example.tsx"] c4cc413b_001e_bfa9_2784_dadbeb67c0b2 -->|defined in| db4385e3_ad03_edc8_f86f_bcba741693f3 style c4cc413b_001e_bfa9_2784_dadbeb67c0b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/registry/bases/base/examples/chart-example.tsx lines 160–207
function ChartBarExample() {
return (
<Example title="Bar Chart">
<Card className="w-full">
<CardHeader>
<CardTitle>Bar Chart - Multiple</CardTitle>
<CardDescription>January - June 2024</CardDescription>
</CardHeader>
<CardContent>
<ChartContainer config={barChartConfig}>
<BarChart accessibilityLayer data={barChartData}>
<CartesianGrid vertical={false} />
<XAxis
dataKey="month"
tickLine={false}
tickMargin={10}
axisLine={false}
tickFormatter={(value) => value.slice(0, 3)}
/>
<ChartTooltip
cursor={false}
content={<ChartTooltipContent indicator="dashed" />}
/>
<Bar dataKey="desktop" fill="var(--color-desktop)" radius={4} />
<Bar dataKey="mobile" fill="var(--color-mobile)" radius={4} />
</BarChart>
</ChartContainer>
</CardContent>
<CardFooter className="flex-col items-start gap-2">
<div className="flex gap-2 leading-none font-medium">
Trending up by 5.2% this month{" "}
<IconPlaceholder
lucide="TrendingUpIcon"
tabler="IconTrendingUp"
hugeicons="ChartUpIcon"
phosphor="TrendUpIcon"
remixicon="RiLineChartLine"
className="size-4"
/>
</div>
<div className="text-muted-foreground leading-none">
Showing total visitors for the last 6 months
</div>
</CardFooter>
</Card>
</Example>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does ChartBarExample() do?
ChartBarExample() is a function in the ui codebase, defined in apps/v4/registry/bases/base/examples/chart-example.tsx.
Where is ChartBarExample() defined?
ChartBarExample() is defined in apps/v4/registry/bases/base/examples/chart-example.tsx at line 160.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free