UNPKG

react-native-chart-kit

Version:

Beautiful React Native charts for dashboards, reports, and data-rich mobile apps.

28 lines 1.33 kB
import type { PieChartProps } from "./types"; export type PieChartDataTableRow<TData = unknown> = { color?: string | undefined; formattedValue: string; index: number; label: string; percentage: number; percentageLabel: string; raw: TData; value: number | null; }; export type PieChartDataTable<TData = unknown> = { rows: Array<PieChartDataTableRow<TData>>; total: number; }; type PieChartAccessibilityInput<TData extends Record<string, unknown>> = { colorKey?: PieChartProps<TData>["colorKey"] | undefined; colors?: PieChartProps<TData>["colors"] | undefined; data: PieChartProps<TData>["data"]; formatPercentage?: PieChartProps<TData>["formatPercentage"] | undefined; formatValue?: PieChartProps<TData>["formatValue"] | undefined; labelKey?: PieChartProps<TData>["labelKey"] | undefined; valueKey: PieChartProps<TData>["valueKey"]; }; export declare const getPieChartDataTable: <TData extends Record<string, unknown>>({ colorKey, colors, data, formatPercentage, formatValue, labelKey, valueKey }: PieChartAccessibilityInput<TData>) => PieChartDataTable<TData>; export declare const getPieChartAccessibilitySummary: <TData extends Record<string, unknown>>(input: PieChartAccessibilityInput<TData>) => string; export {}; //# sourceMappingURL=accessibility.d.ts.map