chart-example-grid.tsx — ui Source File
Architecture documentation for chart-example-grid.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b1da4ea7_49cd_fc45_b997_e27e8901b900["chart-example-grid.tsx"] 123dedf1_d4c9_b6d0_e68a_582ce91278f8["chart"] b1da4ea7_49cd_fc45_b997_e27e8901b900 --> 123dedf1_d4c9_b6d0_e68a_582ce91278f8 da384753_eb23_55ed_e7a6_3bd0e172b999["recharts"] b1da4ea7_49cd_fc45_b997_e27e8901b900 --> da384753_eb23_55ed_e7a6_3bd0e172b999 style b1da4ea7_49cd_fc45_b997_e27e8901b900 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { ChartContainer, type ChartConfig } from "@/examples/base/ui/chart"
import { Bar, BarChart, CartesianGrid } from "recharts"
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 function ChartBarDemoGrid() {
return (
<ChartContainer config={chartConfig} className="min-h-[200px] w-full">
<BarChart accessibilityLayer data={chartData}>
<CartesianGrid vertical={false} />
<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-example-grid.tsx do?
chart-example-grid.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, SearchAPI subdomain.
What functions are defined in chart-example-grid.tsx?
chart-example-grid.tsx defines 1 function(s): ChartBarDemoGrid.
What does chart-example-grid.tsx depend on?
chart-example-grid.tsx imports 2 module(s): chart, recharts.
Where is chart-example-grid.tsx in the architecture?
chart-example-grid.tsx is located at apps/v4/examples/base/chart-example-grid.tsx (domain: DocumentationAtlas, subdomain: SearchAPI, directory: apps/v4/examples/base).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free