BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/chart-line-multiple

chart-line-multiple

yyc3-knowledge-base/chart-line-multiple
UnverifiedBlock

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/YYC-Cube/YYC3-Knowledge-Base/main/YYC3-D/ui/apps/v4/chart-line-multiple.json

Source

registry/new-york-v4/charts/chart-line-multiple.tsxraw.githubusercontent.com/YYC-Cube/YYC3-Knowledge-Base/main/YYC3-D/ui/apps/v4/chart-line-multiple.json
1"use client"
2
3import { TrendingUp } from "lucide-react"
4import { CartesianGrid, Line, LineChart, XAxis } from "recharts"
5
6import {
7 Card,
8 CardContent,
9 CardDescription,
10 CardFooter,
11 CardHeader,
12 CardTitle,
13} from "@/registry/new-york/ui/card"
14import {
15 ChartConfig,
16 ChartContainer,
17 ChartTooltip,
18 ChartTooltipContent,
19} from "@/registry/new-york/ui/chart"
20const chartData = [
21 { month: "January", desktop: 186, mobile: 80 },
22 { month: "February", desktop: 305, mobile: 200 },
23 { month: "March", desktop: 237, mobile: 120 },
24 { month: "April", desktop: 73, mobile: 190 },
25 { month: "May", desktop: 209, mobile: 130 },
26 { month: "June", desktop: 214, mobile: 140 },
27]
28
29const chartConfig = {
30 desktop: {
31 label: "Desktop",
32 color: "hsl(var(--chart-1))",
33 },
34 mobile: {
35 label: "Mobile",
36 color: "hsl(var(--chart-2))",
37 },
38} satisfies ChartConfig
39
40export default function Component() {
41 return (
42 <Card>
43 <CardHeader>
44 <CardTitle>Line Chart - Multiple</CardTitle>
45 <CardDescription>January - June 2024</CardDescription>
46 </CardHeader>
47 <CardContent>
48 <ChartContainer config={chartConfig}>
49 <LineChart
50 accessibilityLayer
51 data={chartData}
52 margin={{
53 left: 12,
54 right: 12,
55 }}
56 >
57 <CartesianGrid vertical={false} />
58 <XAxis
59 dataKey="month"
60 tickLine={false}
61 axisLine={false}
62 tickMargin={8}
63 tickFormatter={(value) => value.slice(0, 3)}
64 />
65 <ChartTooltip cursor={false} content={<ChartTooltipContent />} />
66 <Line
67 dataKey="desktop"
68 type="monotone"
69 stroke="var(--color-desktop)"
70 strokeWidth={2}
71 dot={false}
72 />
73 <Line
74 dataKey="mobile"
75 type="monotone"
76 stroke="var(--color-mobile)"
77 strokeWidth={2}
78 dot={false}
79 />
80 </LineChart>
81 </ChartContainer>
82 </CardContent>
83 <CardFooter>
84 <div className="flex w-full items-start gap-2 text-sm">
85 <div className="grid gap-2">
86 <div className="flex items-center gap-2 font-medium leading-none">
87 Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />
88 </div>
89// … truncated

What it pulls in

Other registry items

  • card
  • chart

Files it writes

  • registry/new-york-v4/charts/chart-line-multiple.tsx

Facts

Registry
shadcn/ui
Type
registry:block
Access
Unverified
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

ui.shadcn.com YYC-Cube/YYC3-Knowledge-Base on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 411 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
chart-area-axeschart-area-axesshadcn/uiBlocksUnverifiedno deps
chart-area-defaultchart-area-defaultshadcn/uiBlocksUnverifiedno deps
chart-area-gradientchart-area-gradientshadcn/uiBlocksUnverifiedno deps
chart-area-iconschart-area-iconsshadcn/uiBlocksUnverifiedno deps
chart-area-interactivechart-area-interactiveshadcn/uiBlocksUnverifiedno deps
chart-area-legendchart-area-legendshadcn/uiBlocksUnverifiedno deps
chart-area-linearchart-area-linearshadcn/uiBlocksUnverifiedno deps
chart-area-stackedchart-area-stackedshadcn/uiBlocksUnverifiedno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex