UNPKG

@blockscout/ui-toolkit

Version:

A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects

16 lines (15 loc) 649 B
import { default as React } from 'react'; import { TimeChartItem } from '../types'; import * as d3 from 'd3'; export interface ChartAreaProps extends React.SVGProps<SVGPathElement> { id: string; xScale: d3.ScaleTime<number, number> | d3.ScaleLinear<number, number>; yScale: d3.ScaleTime<number, number> | d3.ScaleLinear<number, number>; gradient: { startColor: string; stopColor: string; }; data: Array<TimeChartItem>; noAnimation?: boolean; } export declare const ChartArea: React.MemoExoticComponent<({ id, xScale, yScale, gradient, data, noAnimation, ...props }: ChartAreaProps) => React.JSX.Element>;