Chart blocks for shadcn/ui. All blocks on one page ↗
BLOCKS
01 — INSTALL
npx shadcn@latest add @wick-charts/chart-candlestick02 — USE IT
The block draws demo data. To draw yours, replace it in
chart-candlestick.tsx and pass your array to <CandlestickSeries>. Data format: Candlestick.import { ChartCandlestick } from '@/components/chart-candlestick'; export default function Dashboard() { return <ChartCandlestick />;}03 — BUILD YOUR OWN CHART
Add the chart container of the blocks:
npx shadcn@latest add @wick-charts/wick-chart. It takes the colors and dark mode of your shadcn theme. Set the size with classes, the default is aspect-video.import { LineSeries, TimeAxis, type TimePoint, Tooltip, YAxis } from '@wick-charts/react'; import { WickChart } from '@/components/ui/wick-chart'; export function Revenue({ data }: { data: TimePoint[] }) { return ( <WickChart className="aspect-auto h-[250px]"> <LineSeries data={data} /> <YAxis /> <TimeAxis /> <Tooltip /> </WickChart> );}04 — UPGRADE
After an upgrade of
@wick-charts/*, re-add the theme hook: the CLI keeps an installed file unless you pass --overwrite. Re-add a block the same way to take its fixes; this replaces your edits to it.npx shadcn@latest add @wick-charts/wick-theme --overwriteChart colors: