UNPKG

react-native-chart-kit

Version:

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

31 lines 1.19 kB
import { type LineChartDotConfig, type ResolvedLineChartDotConfig } from "./options"; import type { LineChartTooltipSeriesItem } from "./tooltip"; export type LineChartSelectablePoint = { dataIndex: number; defined: boolean; index: number; value?: number | null; x: number; y: number; }; export type LineChartSelectableGeometry<TPoint extends LineChartSelectablePoint> = { geometry: { key: string; label: string; points: TPoint[]; }; style: { color: string; dot: ResolvedLineChartDotConfig; }; }; export type LineChartSelectedSeriesItem<TPoint extends LineChartSelectablePoint> = LineChartTooltipSeriesItem<TPoint> & { activeDot: ResolvedLineChartDotConfig; }; export declare const getSelectedLineSeries: <TPoint extends LineChartSelectablePoint>({ activeDot, formatYLabel, geometries, selectedDataIndex }: { activeDot: boolean | LineChartDotConfig | undefined; formatYLabel: (value: number) => string; geometries: Array<LineChartSelectableGeometry<TPoint>>; selectedDataIndex: number | undefined; }) => Array<LineChartSelectedSeriesItem<TPoint>>; //# sourceMappingURL=selection.d.ts.map