victory-native
Version:
A charting library for React Native with a focus on performance and customization.
25 lines (24 loc) • 1.36 kB
TypeScript
/// <reference types="react" />
import { type PieSliceData } from "./PieSlice";
declare const Pie: {
Chart: (props: {
children?: ((args: {
slice: PieSliceData;
}) => import("react").ReactNode) | undefined;
innerRadius?: string | number | undefined;
circleSweepDegrees?: number | undefined;
startAngle?: number | undefined;
size?: number | undefined;
}) => import("react").JSX.Element;
Slice: ({ children, animate, ...rest }: Partial<Omit<import("@shopify/react-native-skia").PathProps, "path" | "color">> & {
label?: import("./PieLabel").PieLabelProps | undefined;
animate?: import("../hooks/useAnimatedPath").PathAnimationConfig | undefined;
}) => import("react").JSX.Element;
Label: ({ font, radiusOffset, color, text, children, }: import("./PieLabel").PieLabelProps) => string | number | boolean | Iterable<import("react").ReactNode> | import("react").JSX.Element | null | undefined;
SliceAngularInset: (props: {
angularInset: import("./PieSliceAngularInset").PieSliceAngularInsetData;
} & Partial<Omit<import("@shopify/react-native-skia").PathProps, "path" | "color">> & {
animate?: import("../hooks/useAnimatedPath").PathAnimationConfig | undefined;
}) => import("react").JSX.Element | null;
};
export { Pie, type PieSliceData };