react-financial-charts
Version:
React charts specific to finance.
31 lines (30 loc) • 895 B
TypeScript
import * as React from "react";
interface OHLCSeriesProps {
readonly className?: string;
readonly classNames?: string | any;
readonly clip?: boolean;
readonly stroke?: string | any;
readonly strokeWidth?: number;
readonly yAccessor?: any;
}
export declare class OHLCSeries extends React.Component<OHLCSeriesProps> {
static defaultProps: {
className: string;
yAccessor: (d: any) => {
open: any;
high: any;
low: any;
close: any;
};
classNames: (d: any) => "up" | "down" | "firstbar";
stroke: (d: any) => "#000000" | "#26a69a" | "#ef5350";
strokeWidth: number;
clip: boolean;
};
render(): JSX.Element;
private readonly renderSVG;
private readonly drawOnCanvas;
private readonly getOHLCBars;
private readonly drawBarDataOnCanvas;
}
export {};