@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
12 lines (11 loc) • 612 B
TypeScript
import { default as React } from 'react';
import { TimeChartItem } from '../types';
import { AnimationType } from '../utils/animations';
import * as d3 from 'd3';
export interface ChartLineProps extends React.SVGProps<SVGPathElement> {
xScale: d3.ScaleTime<number, number> | d3.ScaleLinear<number, number>;
yScale: d3.ScaleTime<number, number> | d3.ScaleLinear<number, number>;
data: Array<TimeChartItem>;
animation: AnimationType;
}
export declare const ChartLine: React.MemoExoticComponent<({ xScale, yScale, data, animation, strokeDasharray, ...props }: ChartLineProps) => React.JSX.Element>;