@lobehub/charts
Version:
React modern charts components built on recharts
19 lines (18 loc) • 697 B
TypeScript
import { ReactNode } from 'react';
import { FlexboxProps } from 'react-layout-kit';
import { TrackerBlockProps } from './TrackerBlock';
interface DataItem extends TrackerBlockProps {
[key: string]: any;
}
export interface TrackerProps extends FlexboxProps {
blockGap?: number | string;
blockHeight?: number | string;
blockWidth?: number | string;
customTooltip?: (payload: DataItem) => ReactNode;
data: DataItem[];
leftLabel?: ReactNode;
onValueChange?: (payload: DataItem) => void;
rightLabel?: ReactNode;
}
declare const Tracker: import("react").ForwardRefExoticComponent<TrackerProps & import("react").RefAttributes<HTMLDivElement>>;
export default Tracker;