Skip to main content

limitChartPoints

FitFileViewer - API Documentation v30.0.1


FitFileViewer - API Documentation / utils/charts/core/renderChartPointUtils / limitChartPoints

Function: limitChartPoints()

limitChartPoints<T>(points: readonly T[] | null | undefined, maxPoints: string | number | null | undefined): T[]

Defined in: utils/charts/core/renderChartPointUtils.ts:110

Returns a sampled copy of chart points that respects the max-points setting.

Type Parameters​

T​

T

Parameters​

points​

readonly T[] | null | undefined

maxPoints​

string | number | null | undefined

Returns​

T[]