react-minimal-pie-chart
Version:
Lightweight but versatile SVG pie/donut charts for React
4 lines (3 loc) • 339 B
TypeScript
import type { BaseDataEntry, ExtendedData } from '../commonTypes';
import type { PropsWithDefaults as ChartProps } from './Chart';
export default function extendData<DataEntry extends BaseDataEntry>({ data, lengthAngle: totalAngle, totalValue, paddingAngle, startAngle: chartStartAngle, }: ChartProps<DataEntry>): ExtendedData<DataEntry>;