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-bar-default

chart-bar-default

yyc3-knowledge-base/chart-bar-default
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-bar-default.json

Source

registry/new-york-v4/charts/chart-bar-default.tsxraw.githubusercontent.com/YYC-Cube/YYC3-Knowledge-Base/main/YYC3-D/ui/apps/v4/chart-bar-default.json
1"use client"
2
3import { TrendingUp } from "lucide-react"
4import { Bar, BarChart, CartesianGrid, 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 },
22 { month: "February", desktop: 305 },
23 { month: "March", desktop: 237 },
24 { month: "April", desktop: 73 },
25 { month: "May", desktop: 209 },
26 { month: "June", desktop: 214 },
27]
28
29const chartConfig = {
30 desktop: {
31 label: "Desktop",
32 color: "hsl(var(--chart-1))",
33 },
34} satisfies ChartConfig
35
36export default function Component() {
37 return (
38 <Card>
39 <CardHeader>
40 <CardTitle>Bar Chart</CardTitle>
41 <CardDescription>January - June 2024</CardDescription>
42 </CardHeader>
43 <CardContent>
44 <ChartContainer config={chartConfig}>
45 <BarChart accessibilityLayer data={chartData}>
46 <CartesianGrid vertical={false} />
47 <XAxis
48 dataKey="month"
49 tickLine={false}
50 tickMargin={10}
51 axisLine={false}
52 tickFormatter={(value) => value.slice(0, 3)}
53 />
54 <ChartTooltip
55 cursor={false}
56 content={<ChartTooltipContent hideLabel />}
57 />
58 <Bar dataKey="desktop" fill="var(--color-desktop)" radius={8} />
59 </BarChart>
60 </ChartContainer>
61 </CardContent>
62 <CardFooter className="flex-col items-start gap-2 text-sm">
63 <div className="flex gap-2 font-medium leading-none">
64 Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />
65 </div>
66 <div className="leading-none text-muted-foreground">
67 Showing total visitors for the last 6 months
68 </div>
69 </CardFooter>
70 </Card>
71 )
72}

What it pulls in

Other registry items

  • card
  • chart

Files it writes

  • registry/new-york-v4/charts/chart-bar-default.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