chart-area-step.tsx — ui Source File
Architecture documentation for chart-area-step.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d6c250ea_072f_7940_0e96_f54925b353d8["chart-area-step.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] d6c250ea_072f_7940_0e96_f54925b353d8 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 da384753_eb23_55ed_e7a6_3bd0e172b999["recharts"] d6c250ea_072f_7940_0e96_f54925b353d8 --> da384753_eb23_55ed_e7a6_3bd0e172b999 95a7752f_4b97_5bde_5d7d_fca03536ac35["card"] d6c250ea_072f_7940_0e96_f54925b353d8 --> 95a7752f_4b97_5bde_5d7d_fca03536ac35 54edb93d_8b2b_eda5_dfc1_461038aaa132["chart"] d6c250ea_072f_7940_0e96_f54925b353d8 --> 54edb93d_8b2b_eda5_dfc1_461038aaa132 style d6c250ea_072f_7940_0e96_f54925b353d8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { Activity, TrendingUp } from "lucide-react"
import { Area, AreaChart, CartesianGrid, XAxis } from "recharts"
import {
Card,
CardContent,
CardDescription,
CardFooter,
CardHeader,
CardTitle,
} from "@/registry/new-york/ui/card"
import {
ChartConfig,
ChartContainer,
ChartTooltip,
ChartTooltipContent,
} from "@/registry/new-york/ui/chart"
export const description = "A step area chart"
const chartData = [
{ month: "January", desktop: 186 },
{ month: "February", desktop: 305 },
{ month: "March", desktop: 237 },
{ month: "April", desktop: 73 },
{ month: "May", desktop: 209 },
{ month: "June", desktop: 214 },
]
const chartConfig = {
desktop: {
label: "Desktop",
color: "hsl(var(--chart-1))",
icon: Activity,
},
} satisfies ChartConfig
export default function Component() {
return (
<Card>
<CardHeader>
<CardTitle>Area Chart - Step</CardTitle>
<CardDescription>
Showing total visitors for the last 6 months
</CardDescription>
</CardHeader>
<CardContent>
<ChartContainer config={chartConfig}>
<AreaChart
accessibilityLayer
data={chartData}
margin={{
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 hideLabel />}
/>
<Area
dataKey="desktop"
type="step"
fill="var(--color-desktop)"
fillOpacity={0.4}
stroke="var(--color-desktop)"
/>
</AreaChart>
</ChartContainer>
</CardContent>
<CardFooter>
<div className="flex w-full items-start gap-2 text-sm">
<div className="grid gap-2">
<div className="flex items-center gap-2 font-medium leading-none">
Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />
</div>
<div className="flex items-center gap-2 leading-none text-muted-foreground">
January - June 2024
</div>
</div>
</div>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- card
- chart
- lucide-react
- recharts
Source
Frequently Asked Questions
What does chart-area-step.tsx do?
chart-area-step.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-area-step.tsx?
chart-area-step.tsx defines 1 function(s): Component.
What does chart-area-step.tsx depend on?
chart-area-step.tsx imports 4 module(s): card, chart, lucide-react, recharts.
Where is chart-area-step.tsx in the architecture?
chart-area-step.tsx is located at deprecated/www/registry/new-york/charts/chart-area-step.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: deprecated/www/registry/new-york/charts).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free