UNPKG

@aveonline/ui-react

Version:

Home base for Aveonline design system - ecosystem react

29 lines (28 loc) 722 B
import { XAxisProps, YAxisProps } from 'recharts'; import { CurveType } from 'recharts/types/shape/Curve'; export interface ILineConfig { dataKey: string; stroke: string; } export interface IPercentageData { dataKey: string; percentage: number; } export interface IPropsLine<T> { data: T[]; width: number; height: number; xaxis: XAxisProps; yaxis: YAxisProps; type?: CurveType; strokeDasharray?: string; linesConfig: ILineConfig[]; isLoading?: boolean; yAxisTickFormatter?: (tick: number) => string; percentageData?: IPercentageData[]; simbol?: string; } export interface IDataWithSymbol { name: string; [key: string]: number | string | undefined; }