react-financial-charts
Version:
React charts specific to finance.
30 lines (29 loc) • 995 B
TypeScript
import * as React from "react";
export declare type layouts = "horizontal" | "horizontalRows" | "horizontalInline" | "vertical" | "verticalRows";
interface SingleTooltipProps {
readonly origin: number[];
readonly yLabel: string;
readonly yValue: string;
readonly onClick?: ((details: any, event: React.MouseEvent) => void);
readonly fontFamily?: string;
readonly labelFill: string;
readonly valueFill: string;
readonly fontSize?: number;
readonly forChart: number | string;
readonly options: any;
readonly layout: layouts;
readonly withShape: boolean;
}
export declare class SingleTooltip extends React.Component<SingleTooltipProps> {
static defaultProps: {
labelFill: string;
valueFill: string;
withShape: boolean;
};
renderValueNextToLabel(): JSX.Element;
renderValueBeneathToLabel(): JSX.Element;
renderInline(): JSX.Element;
render(): JSX.Element;
private readonly handleClick;
}
export {};