import type { View } from 'react-native'; import type { BarChartBaseProps, BarChartProps } from './BarChart'; import type { BarSeries } from './BarStack'; /** Extended series type that supports single data values. */ export type PercentageBarSeries = Omit & { /** * Data for this series. * * Can be either: * - Single number: `1400` * - Array of numbers: `[10, 15, 20]` */ data: number | Array; }; export type PercentageBarChartBaseProps = Omit< BarChartBaseProps, | 'series' | 'stacked' | 'layout' | 'roundBaseline' | 'inset' | 'enableScrubbing' | 'onScrubberPositionChange' > & { /** * Configuration objects that define how to visualize the data. * Each series contains its own data. */ series?: PercentageBarSeries[]; /** * Chart layout - describes the direction bars/areas grow. * - 'vertical': Bars grow vertically. X is category axis, Y is value axis. * - 'horizontal' (default): Bars grow horizontally. Y is category axis, X is value axis. * @default 'horizontal' */ layout?: BarChartBaseProps['layout']; /** * Whether to round the baseline of a bar (where the value is 0). * @default true */ roundBaseline?: BarChartBaseProps['roundBaseline']; /** * Inset around the entire chart (outside the axes). * @default 0 */ inset?: BarChartBaseProps['inset']; }; export type PercentageBarChartProps = PercentageBarChartBaseProps & Omit< BarChartProps, | 'series' | 'stacked' | 'layout' | 'roundBaseline' | 'inset' | 'enableScrubbing' | 'onScrubberPositionChange' >; export declare const PercentageBarChart: import('react').MemoExoticComponent< ({ ref, series, layout, roundBaseline, inset, transitions, xAxis, yAxis, testID, children, ...props }: PercentageBarChartProps & { ref?: React.Ref; }) => import('react/jsx-runtime').JSX.Element >; //# sourceMappingURL=PercentageBarChart.d.ts.map