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