This component no longer exists. It was in shadcn/ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-05 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
chart-bar-horizontal
accelya-ui-lib/chart-bar-horizontalRemovedBlock
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/chart-bar-horizontal.jsonSource
1"use client"23import { TrendingUp } from "lucide-react"4import { Bar, BarChart, XAxis, YAxis } from "recharts"56import {7 Card,8 CardContent,9 CardDescription,10 CardFooter,11 CardHeader,12 CardTitle,13} from "@/registry/default/ui/card"14import {15 ChartConfig,16 ChartContainer,17 ChartTooltip,18 ChartTooltipContent,19} from "@/registry/default/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]2829const chartConfig = {30 desktop: {31 label: "Desktop",32 color: "hsl(var(--chart-1))",33 },34} satisfies ChartConfig3536export default function Component() {37 return (38 <Card>39 <CardHeader>40 <CardTitle>Bar Chart - Horizontal</CardTitle>41 <CardDescription>January - June 2024</CardDescription>42 </CardHeader>43 <CardContent>44 <ChartContainer config={chartConfig}>45 <BarChart46 accessibilityLayer47 data={chartData}48 layout="vertical"49 margin={{50 left: -20,51 }}52 >53 <XAxis type="number" dataKey="desktop" hide />54 <YAxis55 dataKey="month"56 type="category"57 tickLine={false}58 tickMargin={10}59 axisLine={false}60 tickFormatter={(value) => value.slice(0, 3)}61 />62 <ChartTooltip63 cursor={false}64 content={<ChartTooltipContent hideLabel />}65 />66 <Bar dataKey="desktop" fill="var(--color-desktop)" radius={5} />67 </BarChart>68 </ChartContainer>69 </CardContent>70 <CardFooter className="flex-col items-start gap-2 text-sm">71 <div className="flex gap-2 font-medium leading-none">72 Trending up by 5.2% this month <TrendingUp className="h-4 w-4" />73 </div>74 <div className="leading-none text-muted-foreground">75 Showing total visitors for the last 6 months76 </div>77 </CardFooter>78 </Card>79 )80}
What it pulls in
Other registry items
