UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

5 lines 243 B
/** * Returns the index of the entry in `axisData` whose numeric value is closest * to `valueAsNumber`. Returns -1 if `axisData` is empty. */ export declare function findClosestIndex(axisData: readonly any[], valueAsNumber: number): number;