/

Candlestick Chart

Visualize financial OHLC data (Open, High, Low, Close). Essential for stock and crypto market analysis.

Usage

example.tsx
import { CandlestickChart } from "@chartts/react"

<CandlestickChart
  data={stockData}
  x="date"
  open="open"
  high="high"
  low="low"
  close="close"
/>

Props

PropTypeDescription
dataT[]Array of OHLC data objects
xkeyof TKey for time/date axis
openkeyof TKey for open values
highkeyof TKey for high values
lowkeyof TKey for low values
closekeyof TKey for close values
upColorstringColor for up candles. Default: '#10b981'
downColorstringColor for down candles. Default: '#ef4444'

Features

  • Standard OHLC candlestick rendering
  • Up/down color customization
  • Volume overlay support
  • Zoom and pan for time navigation
  • Crosshair with price labels
  • Real-time data streaming

Other Charts