UNPKG

react-native-chart-kit

Version:

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

55 lines 2.17 kB
import type { StyleProp, ViewStyle } from "react-native"; import type { CartesianChartTheme, ChartKitThemeMode } from "../../theme"; import type { BarChartProps } from "./types"; export type StackedBarChartLegacyData = { labels: string[]; legend: string[]; data: Array<Array<number | null | undefined>>; barColors: string[]; }; export type StackedBarChartLegacyConfig = { backgroundColor?: string; backgroundGradientFrom?: string; backgroundGradientTo?: string; color?: (opacity?: number, index?: number) => string; labelColor?: (opacity?: number) => string; decimalPlaces?: number; barPercentage?: number; barRadius?: number; propsForBackgroundLines?: { stroke?: string; }; }; export type StackedBarChartProps = { data: StackedBarChartLegacyData; width: number; height: number; chartConfig: StackedBarChartLegacyConfig; hideLegend?: boolean; style?: StyleProp<ViewStyle>; barPercentage?: number; decimalPlaces?: number; withVerticalLabels?: boolean; withHorizontalLabels?: boolean; withInnerLines?: boolean; segments?: number; percentile?: boolean; fromZero?: boolean; yAxisLabel?: string; yAxisSuffix?: string; verticalLabelsHeightPercentage?: number; formatYLabel?: (yLabel: string) => string; theme?: ChartKitThemeMode | CartesianChartTheme; preset?: BarChartProps<StackedBarChartRow>["preset"]; accessibilityLabel?: string; testID?: string; }; export type StackedBarChartRow = Record<string, number | string | null | undefined> & { label: string; }; export type StackedBarChartCompatProps = { barChartProps: BarChartProps<StackedBarChartRow>; style: StyleProp<ViewStyle> | undefined; }; export declare const buildStackedBarChartCompatProps: ({ accessibilityLabel, barPercentage, chartConfig, data, decimalPlaces, formatYLabel, fromZero, height, hideLegend, percentile, preset, segments, style, testID, theme, width, withHorizontalLabels, withInnerLines, withVerticalLabels, yAxisLabel, yAxisSuffix }: StackedBarChartProps) => StackedBarChartCompatProps; //# sourceMappingURL=stackedCompat.d.ts.map