UNPKG

@lobehub/charts

Version:

React modern charts components built on recharts

32 lines (31 loc) 1.19 kB
import { CSSProperties, ComponentType } from 'react'; import type BaseAnimationTimingProps from "../common/BaseAnimationTimingProps"; import { CustomTooltipProps } from "../common/CustomTooltipProps"; import { type NoDataProps } from "../common/NoData"; import type { EventProps } from "../types/charts"; import { ValueFormatter } from "../types/charts"; type DonutChartVariant = 'donut' | 'pie'; export interface DonutChartProps extends BaseAnimationTimingProps { category?: string; className?: string; colors?: string[]; customCategories?: { [key: string]: string; }; customTooltip?: ComponentType<CustomTooltipProps>; data: any[]; donutLabel?: string; index?: string; label?: string; loading?: boolean; noDataText?: NoDataProps['noDataText']; onValueChange?: (value: EventProps) => void; showAnimation?: boolean; showLabel?: boolean; showTooltip?: boolean; style?: CSSProperties; valueFormatter?: ValueFormatter; variant?: DonutChartVariant; } declare const DonutChart: import("react").ForwardRefExoticComponent<DonutChartProps & import("react").RefAttributes<HTMLDivElement>>; export default DonutChart;