UNPKG

react-native-chart-kit

Version:

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

34 lines 1.7 kB
import type { LineChartProps } from "./types"; type ChartXValue = string | number | Date; export type LineChartDataTableColumn = { key: string; label: string; }; export type LineChartDataTableRow<TData = unknown> = { index: number; x: ChartXValue; xLabel: string; values: Record<string, number | null>; formattedValues: Record<string, string>; raw: TData; }; export type LineChartDataTable<TData = unknown> = { columns: LineChartDataTableColumn[]; rows: Array<LineChartDataTableRow<TData>>; }; type LineChartAccessibilityInput<TData extends Record<string, unknown>> = { data: LineChartProps<TData>["data"]; formatXLabel?: LineChartProps<TData>["formatXLabel"] | undefined; formatYLabel?: LineChartProps<TData>["formatYLabel"] | undefined; series?: LineChartProps<TData>["series"] | undefined; xKey: LineChartProps<TData>["xKey"]; yKey?: LineChartProps<TData>["yKey"] | undefined; yKeys?: LineChartProps<TData>["yKeys"] | undefined; }; export declare const getLineChartDataTable: <TData extends Record<string, unknown>>({ data, formatXLabel, formatYLabel, series, xKey, yKey, yKeys }: LineChartAccessibilityInput<TData>) => LineChartDataTable<TData>; export declare const getLineChartAccessibilitySummary: <TData extends Record<string, unknown>>(input: LineChartAccessibilityInput<TData>) => string; export declare const useLineChartAccessibilityLabel: <TData extends Record<string, unknown>>({ accessibilityLabel, data, formatXLabel, formatYLabel, series, xKey, yKey, yKeys }: LineChartAccessibilityInput<TData> & { accessibilityLabel?: string | undefined; }) => string; export {}; //# sourceMappingURL=accessibility.d.ts.map