@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
16 lines (15 loc) • 661 B
TypeScript
import { default as React } from 'react';
import { LineChartItem } from '../types';
import * as d3 from 'd3';
export interface LineChartAreaProps 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<LineChartItem>;
noAnimation?: boolean;
}
export declare const LineChartArea: React.MemoExoticComponent<({ id, xScale, yScale, gradient, data, noAnimation, ...props }: LineChartAreaProps) => React.JSX.Element>;