chart-bar-demo.tsx — ui Source File
Architecture documentation for chart-bar-demo.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f711e9a9_39e6_98e6_cfd1_276b4ab2a18c["chart-bar-demo.tsx"] da384753_eb23_55ed_e7a6_3bd0e172b999["recharts"] f711e9a9_39e6_98e6_cfd1_276b4ab2a18c --> da384753_eb23_55ed_e7a6_3bd0e172b999 9c524c37_6bc6_459f_8f33_9c86aa346baf["chart"] f711e9a9_39e6_98e6_cfd1_276b4ab2a18c --> 9c524c37_6bc6_459f_8f33_9c86aa346baf style f711e9a9_39e6_98e6_cfd1_276b4ab2a18c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { Bar, BarChart } from "recharts"
import { ChartConfig, ChartContainer } from "@/registry/default/ui/chart"
const chartData = [
{ month: "January", desktop: 186, mobile: 80 },
{ month: "February", desktop: 305, mobile: 200 },
{ month: "March", desktop: 237, mobile: 120 },
{ month: "April", desktop: 73, mobile: 190 },
{ month: "May", desktop: 209, mobile: 130 },
{ month: "June", desktop: 214, mobile: 140 },
]
const chartConfig = {
desktop: {
label: "Desktop",
color: "#2563eb",
},
mobile: {
label: "Mobile",
color: "#60a5fa",
},
} satisfies ChartConfig
export default function Component() {
return (
<ChartContainer config={chartConfig} className="min-h-[200px] w-full">
<BarChart accessibilityLayer data={chartData}>
<Bar dataKey="desktop" fill="var(--color-desktop)" radius={4} />
<Bar dataKey="mobile" fill="var(--color-mobile)" radius={4} />
</BarChart>
</ChartContainer>
)
}
Domain
Subdomains
Functions
Dependencies
- chart
- recharts
Source
Frequently Asked Questions
What does chart-bar-demo.tsx do?
chart-bar-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, ChartRegistry subdomain.
What functions are defined in chart-bar-demo.tsx?
chart-bar-demo.tsx defines 1 function(s): Component.
What does chart-bar-demo.tsx depend on?
chart-bar-demo.tsx imports 2 module(s): chart, recharts.
Where is chart-bar-demo.tsx in the architecture?
chart-bar-demo.tsx is located at deprecated/www/registry/default/examples/chart-bar-demo.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/default/examples).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free