Skip to content

Commit 7881b72

Browse files
committed
add rounding as last step to applyDataCorrection
1 parent 0d2cc49 commit 7881b72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/utils/chart-data-correction.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,6 @@ export function applyDataCorrection<T extends { value: number }>(
9292
let result = data
9393
result = movingAverage(result, settings.averageWindow)
9494
result = smoothing(result, settings.smoothingTau)
95+
result = result.map(d => ({ ...d, value: Math.ceil(d.value) }))
9596
return result
9697
}

0 commit comments

Comments
 (0)