` are not valid inside the chart SVG and may trigger React DOM warnings.
* - `function`: a render function of custom label.
*
* Also see the `labelLine` prop that draws a line connecting each label to the corresponding sector.
*
* @defaultValue false
* @example
} />
* @example https://recharts.github.io/examples/PieChartWithCustomizedLabel
*/
label?: PieLabel;
/**
* If false set, label lines will not be drawn. If true set, label lines will be drawn which have the props calculated internally.
* If object set, label lines will be drawn which have the props merged by the internal calculated props and the option.
* If ReactElement set, the option can be the custom label line element.
* If set a function, the function will be called to render customized label line.
* @defaultValue true
* @example
} />
* @example https://recharts.github.io/examples/PieChartWithCustomizedLabel
*/
labelLine?: PieLabelLine;
/**
* The type of icon in legend. If set to 'none', no legend item will be rendered.
* @defaultValue rect
*/
legendType?: LegendType;
/** the max radius of pie */
maxRadius?: number;
/**
* The minimum angle of each unzero data.
* @defaultValue 0
*/
minAngle?: number;
/**
* Name represents each sector in the tooltip, and legend.
* This allows you to extract the name from the data:
*
* - `string`: the name of the field in the data object;
* - `number`: the index of the field in the data;
* - `function`: a function that receives the data object and returns the name.
*
* @defaultValue name
*/
nameKey?: DataKey
;
/**
* The customized event handler of animation end.
*/
onAnimationEnd?: () => void;
/**
* The customized event handler of animation start.
*/
onAnimationStart?: () => void;
/**
* The tabindex of wrapper surrounding the cells.
* @defaultValue 0
*/
rootTabIndex?: number;
/**
* The custom shape of a Pie Sector.
* Can also be used to render active sector by checking isActive.
* During animations, the function shape also receives `animationElapsedTime`, `isAnimating`, and `isEntrance`.
* If undefined, renders {@link Sector} shape.
*/
shape?: PieShape;
tooltipType?: TooltipType;
/**
* Formats the value displayed in the tooltip for this Pie.
* When set, takes precedence over the `formatter` prop on the Tooltip component.
*/
formatter?: Formatter;
/**
* @defaultValue 100
*/
zIndex?: number;
}
type PieSvgAttributes = Omit, 'ref' | keyof PieEvents>;
export type Props = PieSvgAttributes & PieProps;
export type PieCoordinate = {
cx: number;
cy: number;
innerRadius: number;
outerRadius: number;
maxRadius: number;
};
export declare function computePieSectors({ pieSettings, displayedData, cells, offset, }: {
pieSettings: PieSettings;
displayedData: ChartData;
cells: ReadonlyArray | undefined;
offset: ChartOffsetInternal;
}): ReadonlyArray | undefined;
export declare const defaultPieProps: {
readonly animationBegin: 400;
readonly animationDuration: 1500;
readonly animationEasing: "ease";
readonly animationInterpolateFn: AnimationInterpolateFn;
readonly animationMatchBy: "append";
readonly cx: "50%";
readonly cy: "50%";
readonly dataKey: "value";
readonly endAngle: 360;
readonly fill: "#808080";
readonly hide: false;
readonly innerRadius: 0;
readonly isAnimationActive: "auto";
readonly label: false;
readonly labelLine: true;
readonly legendType: "rect";
readonly minAngle: 0;
readonly nameKey: "name";
readonly outerRadius: "80%";
readonly paddingAngle: 0;
readonly rootTabIndex: 0;
readonly shape: React.FC;
readonly startAngle: 0;
readonly stroke: "#fff";
readonly zIndex: 100;
};
export declare const Pie: {
(outsideProps: Props): ReactElement;
(outsideProps: Props): ReactElement;
};
export {};