react-financial-charts
Version:
React charts specific to finance.
53 lines (52 loc) • 1.55 kB
TypeScript
import * as React from "react";
interface BarAnnotationProps {
readonly className?: string;
readonly path?: any;
readonly onClick?: any;
readonly xAccessor?: any;
readonly xScale?: any;
readonly yScale?: any;
readonly datum?: object;
readonly stroke?: string;
readonly fill?: string;
readonly opacity?: number;
readonly text?: string;
readonly textAnchor?: string;
readonly fontFamily?: string;
readonly fontSize?: number;
readonly textOpacity?: number;
readonly textFill?: string;
readonly textRotate?: number;
readonly textXOffset?: number;
readonly textYOffset?: number;
readonly textIcon?: string;
readonly textIconFontSize?: number;
readonly textIconOpacity?: number;
readonly textIconFill?: string;
readonly textIconRotate?: number;
readonly textIconXOffset?: number;
readonly textIconYOffset?: number;
readonly textIconAnchor?: string;
}
export declare class BarAnnotation extends React.Component<BarAnnotationProps> {
static defaultProps: {
className: string;
opacity: number;
fill: string;
textAnchor: string;
fontFamily: string;
fontSize: number;
textFill: string;
textOpacity: number;
textIconFill: string;
textIconFontSize: number;
x: ({ xScale, xAccessor, datum }: {
xScale: any;
xAccessor: any;
datum: any;
}) => any;
};
render(): JSX.Element;
private readonly onClick;
}
export {};