UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

6 lines (5 loc) 249 B
/** * Sample data with lttb(Largest-Triangle-Three-Buckets) algo (https://github.com/pingec/downsample-lttb). * Return the sampled index array. */ export declare function lttb(I: number[], X: number[], Y: number[], thresholds: number): number[];