@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
16 lines (15 loc) • 637 B
TypeScript
import { default as React } from 'react';
import { Resolution, TimeChartData } from '../types';
import * as d3 from 'd3';
export interface ChartTooltipProps {
width?: number;
tooltipWidth?: number;
height?: number;
data: TimeChartData;
xScale: d3.ScaleTime<number, number>;
yScale: d3.ScaleLinear<number, number>;
anchorEl: SVGRectElement | null;
noAnimation?: boolean;
resolution?: Resolution;
}
export declare const ChartTooltip: React.MemoExoticComponent<({ xScale, yScale, width, tooltipWidth, height, data, anchorEl, noAnimation, resolution, ...props }: ChartTooltipProps) => React.JSX.Element>;