UNPKG

@deltares/fews-web-oc-charts

Version:
9 lines (8 loc) 453 B
import type { DataPoint } from './types'; /** * Calculates the data extent for a given path in the data array. * @param data - The data array. * @param path - The path to the desired data. * @returns The data extent as an array containing the minimum and maximum values. */ export declare function dataExtentFor<T extends DataPoint>(data: Array<T>, path: string, filter?: (d: T) => boolean): [number | Date | undefined, number | Date | undefined];