Skip to content

Commit 485eb22

Browse files
committed
impr(account graph): round accuracy to nearest multiple of 5 instead of 10 for those accuracy freaks
1 parent bfb06a2 commit 485eb22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/ts/controllers/chart-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,8 +1096,8 @@ function updateAccuracy(updateChart = true): void {
10961096
} else {
10971097
const minAccRoundedTo10 =
10981098
Math.floor(
1099-
Math.min(...accountHistory.getDataset("acc").data.map((x) => x.y)) / 10
1100-
) * 10;
1099+
Math.min(...accountHistory.getDataset("acc").data.map((x) => x.y)) / 5
1100+
) * 5;
11011101

11021102
accountHistory.getScale("acc").min = minAccRoundedTo10;
11031103
accountHistory.getScale("accAvgTen").min = minAccRoundedTo10;

0 commit comments

Comments
 (0)