chart-line-step.tsx — ui Source File
Architecture documentation for chart-line-step.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR aa104198_7984_47ff_c9a0_dbae45b0694a["chart-line-step.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] aa104198_7984_47ff_c9a0_dbae45b0694a --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 da384753_eb23_55ed_e7a6_3bd0e172b999["recharts"] aa104198_7984_47ff_c9a0_dbae45b0694a --> da384753_eb23_55ed_e7a6_3bd0e172b999 95a7752f_4b97_5bde_5d7d_fca03536ac35["card"] aa104198_7984_47ff_c9a0_dbae45b0694a --> 95a7752f_4b97_5bde_5d7d_fca03536ac35 54edb93d_8b2b_eda5_dfc1_461038aaa132["chart"] aa104198_7984_47ff_c9a0_dbae45b0694a --> 54edb93d_8b2b_eda5_dfc1_461038aaa132 style aa104198_7984_47ff_c9a0_dbae45b0694a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { TrendingUp } from "lucide-react"
import { CartesianGrid, Line, LineChart, 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 line chart with step"
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))",
},
} satisfies ChartConfig
export default function Component() {
return (
<Card>
<CardHeader>
<CardTitle>Line Chart - Step</CardTitle>
<CardDescription>January - June 2024</CardDescription>
</CardHeader>
<CardContent>
<ChartContainer config={chartConfig}>
<LineChart
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 />}
/>
<Line
dataKey="desktop"
type="step"
stroke="var(--color-desktop)"
strokeWidth={2}
dot={false}
/>
</LineChart>
</ChartContainer>
</CardContent>
<CardFooter className="flex-col items-start gap-2 text-sm">
<div className="flex gap-2 font-medium leading-none">
Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />
</div>
<div className="leading-none text-muted-foreground">
Showing total visitors for the last 6 months
</div>
</CardFooter>
</Card>
)
}
Domain
Subdomains
Functions
Dependencies
- card
- chart
- lucide-react
- recharts
Source
Frequently Asked Questions
What does chart-line-step.tsx do?
chart-line-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-line-step.tsx?
chart-line-step.tsx defines 1 function(s): Component.
What does chart-line-step.tsx depend on?
chart-line-step.tsx imports 4 module(s): card, chart, lucide-react, recharts.
Where is chart-line-step.tsx in the architecture?
chart-line-step.tsx is located at deprecated/www/registry/new-york/charts/chart-line-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