react-gifted-charts
Version:
ReactJS counterpart of react-native-gifted-charts. An intuitive charting library for Bar, Line, Area, Pie, Donut, Stacked Bar, Population Pyramid and Radar charts in React
31 lines (30 loc) • 866 B
TypeScript
import { PieChartPropsType, pieDataItem, LabelsPosition } from 'gifted-charts-core';
interface IsvgProps {
height: number;
width: number;
viewBox: string;
}
interface IusePiePro {
radius: number;
total: number;
donut?: boolean;
strokeWidth: number;
maxStrokeWidth: number;
isAnimated?: boolean;
animationDuration: number;
initial: string;
dInitial: string[];
dFinal: string[];
getStartCaps: (index: number, item: pieDataItem) => string;
getEndCaps: (index: number, item: pieDataItem) => string;
getTextCoordinates: (index: number, labelPos?: LabelsPosition) => {
x: number;
y: number;
};
labelsPosition: LabelsPosition;
heightFactor: number;
height: number;
svgProps: IsvgProps;
}
export declare const usePiePro: (props: PieChartPropsType) => IusePiePro;
export {};