BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/ondo-ui/chart
This component no longer exists. It was in ondo-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-09 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

ondo-ui/chart
RemovedComponent

Beautiful charts. Built using Recharts. Copy and paste into your apps.

Install it

npx shadcn@latest add https://ui.ondo.dou.so/r/chart.json

Source

components/ui/chart.tsxui.ondo.dou.so/r/chart.json · first 6 KB
1"use client"
2
3import * as React from "react"
4import * as RechartsPrimitive from "recharts"
5import type { TooltipValueType } from "recharts"
6
7import { cn } from "@/lib/utils"
8
9// Format: { THEME_NAME: CSS_SELECTOR }
10const THEMES = { light: "", dark: ".dark" } as const
11
12const INITIAL_DIMENSION = { width: 320, height: 200 } as const
13type TooltipNameType = number | string
14
15export type ChartConfig = Record<
16 string,
17 {
18 label?: React.ReactNode
19 icon?: React.ComponentType
20 } & (
21 | { color?: string; theme?: never }
22 | { color?: never; theme: Record<keyof typeof THEMES, string> }
23 )
24>
25
26type ChartContextProps = {
27 config: ChartConfig
28}
29
30const ChartContext = React.createContext<ChartContextProps | null>(null)
31
32function useChart() {
33 const context = React.useContext(ChartContext)
34
35 if (!context) {
36 throw new Error("useChart must be used within a <ChartContainer />")
37 }
38
39 return context
40}
41
42function ChartContainer({
43 id,
44 className,
45 children,
46 config,
47 initialDimension = INITIAL_DIMENSION,
48 ...props
49}: React.ComponentProps<"div"> & {
50 config: ChartConfig
51 children: React.ComponentProps<
52 typeof RechartsPrimitive.ResponsiveContainer
53 >["children"]
54 initialDimension?: {
55 width: number
56 height: number
57 }
58}) {
59 const uniqueId = React.useId()
60 const chartId = `chart-${id ?? uniqueId.replace(/:/g, "")}`
61
62 return (
63 <ChartContext.Provider value={{ config }}>
64 <div
65 data-slot="chart"
66 data-chart={chartId}
67 className={cn(
68 "flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
69 className
70 )}
71 {...props}
72 >
73 <ChartStyle id={chartId} config={config} />
74 <RechartsPrimitive.ResponsiveContainer
75 initialDimension={initialDimension}
76 >
77 {children}
78 </RechartsPrimitive.ResponsiveContainer>
79 </div>
80// … truncated

What it pulls in

npm packages

  • recharts

Other registry items

  • @ondo-ui/utils

Files it writes

  • components/ui/chart.tsx

Facts

Registry
ondo-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-04
Last confirmed
9 days ago

Go to the source

ui.ondo.dou.so douinc/ondo-ui on GitHub Raw registry item This item as JSON

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex