import type { CartesianChartProps } from '../props/cartesian'; /** * One candlestick data point: [open, close, low, high]. */ export type CandlestickItem = [number, number, number, number]; /** * Candlestick chart data: array of [open, close, low, high] per period. */ export type CandlestickData = CandlestickItem[]; /** * Props for CandlestickChart. * common -> cartesian -> candlestick. * colors is omitted; use positiveColor and negativeColor for candle colors. */ export interface CandlestickChartProps extends Omit { /** * Candlestick data: array of [open, close, low, high] per period. */ data: CandlestickData; /** * X-axis category labels. If omitted, indices (0, 1, 2, ...) are used. */ xAxisData?: (string | number)[]; /** * Optional volume data (bar series below candlestick). Length should match data. */ volumeData?: number[]; /** * Optional MA5 (5-period moving average) line. Length should match data. */ ma5?: number[]; /** * Optional MA10 (10-period moving average) line. Length should match data. */ ma10?: number[]; /** * Optional MA20 (20-period moving average) line. Length should match data. */ ma20?: number[]; /** * Color for positive (up) candles. * @default '#008000' */ positiveColor?: string; /** * Color for negative (down) candles. * @default '#FF2C2C' */ negativeColor?: string; } //# sourceMappingURL=candlestick-chart.props.d.ts.map