UNPKG

@lobehub/charts

Version:

React modern charts components built on recharts

29 lines (28 loc) 1.01 kB
import type { Day as WeekDay } from 'date-fns'; import { ReactNode } from 'react'; import { FlexboxProps } from 'react-layout-kit'; import { NoDataProps } from "../common/NoData"; import type { Activity, Labels } from "../types/charts"; export interface HeatmapsProps extends FlexboxProps { blockMargin?: number; blockRadius?: number; blockSize?: number; colors?: string[]; customTooltip?: (activity: Activity) => ReactNode; data: Array<Activity>; fontSize?: number; hideColorLegend?: boolean; hideMonthLabels?: boolean; hideTotalCount?: boolean; labels?: Labels; loading?: boolean; maxLevel?: number; noDataText?: NoDataProps['noDataText']; onValueChange?: (value: Activity) => void; showTooltip?: boolean; showWeekdayLabels?: boolean; totalCount?: number; weekStart?: WeekDay; } declare const Heatmaps: import("react").ForwardRefExoticComponent<HeatmapsProps & import("react").RefAttributes<HTMLDivElement>>; export default Heatmaps;