MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / clampTargetPoints

Function clampTargetPoints

src/data/sampleSeries.ts:18–21  ·  view source on GitHub ↗
(targetPoints: number)

Source from the content-addressed store, hash-verified

16}
17
18function clampTargetPoints(targetPoints: number): number {
19 const t = Math.floor(targetPoints);
20 return Number.isFinite(t) ? t : 0;
21}
22
23type BucketMode = 'average' | 'max' | 'min';
24

Callers 2

sampleByBucketsFunction · 0.85
sampleSeriesDataPointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected