Componentcharts0.66 KB gzipZero dependencies
Candlestick Chart
OHLC candlestick chart for financial data visualization
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add candlestick-chartOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { CandlestickChart } from "@/components/ui/candlestick-chart"; <CandlestickChart points={points} />Source code
candlestick-chart.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxcandlestick-chart.tsx100 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface CandlestickPoint { open: number; high: number; low: number; close: number; label?: string;} export interface CandlestickChartProps extends React.HTMLAttributes<HTMLDivElement> { points: CandlestickPoint[]; className?: string;} Props
| Prop | Type | Description |
|---|---|---|
| points | CandlestickPoint[] | Configures points. (Default: []) |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |