BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8bitcn/chart

8-bit Chart

8bitcn/chart
FreeBlock

A simple 8-bit chart component

Install it

npx shadcn@latest add https://www.8bitcn.com/r/chart.json

Source

components/ui/8bit/blocks/chart.tsxwww.8bitcn.com/r/chart.json
1"use client";
2
3import { Area, AreaChart, CartesianGrid, XAxis, YAxis } from "recharts";
4
5import {
6 type ChartConfig,
7 ChartContainer,
8 ChartTooltip,
9 ChartTooltipContent,
10} from "@/components/ui/8bit/chart";
11
12export const description = "An area chart with axes";
13
14const chartData = [
15 { month: "January", desktop: 186, mobile: 80 },
16 { month: "February", desktop: 305, mobile: 200 },
17 { month: "March", desktop: 237, mobile: 120 },
18 { month: "April", desktop: 73, mobile: 190 },
19 { month: "May", desktop: 209, mobile: 130 },
20 { month: "June", desktop: 214, mobile: 140 },
21];
22
23const chartConfig = {
24 desktop: {
25 label: "Desktop",
26 color: "var(--chart-1)",
27 },
28 mobile: {
29 label: "Mobile",
30 color: "var(--chart-2)",
31 },
32} satisfies ChartConfig;
33
34export function ChartExample() {
35 return (
36 <ChartContainer
37 config={chartConfig}
38 className={`min-h-[200px] w-full ${"retro"}`}
39 >
40 <AreaChart accessibilityLayer data={chartData}>
41 <CartesianGrid />
42 <XAxis
43 dataKey="month"
44 tickLine={false}
45 axisLine={false}
46 tickMargin={8}
47 tickFormatter={(value) => value.slice(0, 3)}
48 />
49 <ChartTooltip cursor={false} content={<ChartTooltipContent />} />
50 <YAxis
51 width={47}
52 tickLine={false}
53 axisLine={false}
54 tickMargin={8}
55 tickCount={3}
56 />
57 <Area
58 dataKey="mobile"
59 fill="var(--chart-2)"
60 stroke="var(--chart-2)"
61 stackId="a"
62 />
63 <Area
64 dataKey="desktop"
65 fill="var(--chart-1)"
66 stroke="var(--chart-1)"
67 stackId="a"
68 />
69 </AreaChart>
70 </ChartContainer>
71 );
72}

What it pulls in

Other registry items

  • chart

Files it writes

  • components/ui/8bit/blocks/chart.tsx
  • components/ui/8bit/chart.tsx
  • components/ui/8bit/styles/retro.css

Facts

Registry
8bitcn
Type
registry:block
Access
Free
Files written
3
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

www.8bitcn.com Raw registry item This item as JSON

More from 8bitcn

All 121 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
8-bit Advanced 1advanced18bitcnBlocksFreeno deps · 3 files
8-bit Advanced 2advanced28bitcnBlocksFreeno deps · 5 files
8-bit Advanced 3advanced38bitcnBlocksFreeno deps · 6 files
8-bit Audio Settingsaudio-settings8bitcnBlocksFree2 deps · 7 files
8-bit Chapter Introchapter-intro8bitcnBlocksFreeno deps · 3 files
8-bit Character Sheetcharacter-sheet8bitcnBlocksFreeno deps · 9 files
8-bit Chart Area Stepchart-area-step8bitcnBlocksFreeno deps · 3 files
8-bit Chart Barchart-bar8bitcnBlocksFreeno deps · 3 files
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