Skip to main content

Function: limitChartPoints()

function 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[]