react-financial-charts
Version:
React charts specific to finance.
54 lines (53 loc) • 1.65 kB
TypeScript
/// <reference types="d3-format" />
import * as React from "react";
import { default as defaultDisplayValuesFor } from "./displayValuesFor";
interface SingleMAToolTipProps {
readonly origin: number[];
readonly color: string;
readonly displayName: string;
readonly value: string;
readonly onClick?: ((details: any, event: React.MouseEvent<SVGRectElement, MouseEvent>) => void);
readonly fontFamily?: string;
readonly textFill?: string;
readonly labelFill?: string;
readonly fontSize?: number;
readonly forChart: number | string;
readonly options: any;
}
export declare class SingleMAToolTip extends React.Component<SingleMAToolTipProps> {
render(): JSX.Element;
private readonly onClick;
}
interface MovingAverageTooltipProps {
className?: string;
displayFormat: any;
origin: number[];
displayValuesFor?: any;
onClick?: ((event: React.MouseEvent<SVGRectElement, MouseEvent>) => void);
textFill?: string;
labelFill?: string;
fontFamily?: string;
fontSize?: number;
width?: number;
options: Array<{
yAccessor: any;
type: string;
stroke: string;
windowSize: number;
echo?: any;
}>;
}
export declare class MovingAverageTooltip extends React.Component<MovingAverageTooltipProps> {
static defaultProps: {
className: string;
displayFormat: (n: number | {
valueOf(): number;
}) => string;
displayValuesFor: typeof defaultDisplayValuesFor;
origin: number[];
width: number;
};
render(): JSX.Element;
private readonly renderSVG;
}
export {};