victory-native
Version:
A charting library for React Native with a focus on performance and customization.
24 lines (23 loc) • 1.16 kB
TypeScript
import * as React from "react";
import { type PathProps } from "@shopify/react-native-skia";
import type { ChartBounds, PointsArray } from "../../types";
import type { PathAnimationConfig } from "../../hooks/useAnimatedPath";
import { type CandlestickColors, type CandlestickOptionsFn } from "../hooks/useCandlestickPaths";
type SharedPathOptions = Partial<Pick<PathProps, "blendMode" | "opacity" | "antiAlias">>;
export type CandlestickProps = {
openPoints: PointsArray;
highPoints: PointsArray;
lowPoints: PointsArray;
closePoints: PointsArray;
chartBounds: ChartBounds;
candleWidth?: number;
candleRatio?: number;
candleCount?: number;
minBodyHeight?: number;
candleColors?: CandlestickColors;
wickStrokeWidth?: number;
candleOptions?: CandlestickOptionsFn;
animate?: PathAnimationConfig;
} & SharedPathOptions;
export declare const Candlestick: ({ openPoints, highPoints, lowPoints, closePoints, chartBounds, candleWidth, candleRatio, candleCount, minBodyHeight, candleColors, wickStrokeWidth, candleOptions, animate, blendMode, opacity, antiAlias, }: CandlestickProps) => React.JSX.Element;
export {};