From 8723d8ca41788f224a82083a166d8929fb3c52d5 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 5 Nov 2023 18:24:11 -0800 Subject: [PATCH] update/combat rating graph --- commands/player-stats.js | 5 ++--- package.json | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/commands/player-stats.js b/commands/player-stats.js index b6f9b4d..4541fff 100644 --- a/commands/player-stats.js +++ b/commands/player-stats.js @@ -225,9 +225,8 @@ module.exports = { // Gives comfortable margin to the top of the y-axis yAxes: [{ ticks: { - min: 0, - max: Math.round(Math.max(...data)/100)*100 + (Math.round(Math.max(...data)/100)*100 % 200 == 0 ? 400 : 500), // Keeps the max y-axis as a step of 200 - step: 200, + min: Math.round(Math.min(...data)/10)*10 - 10, + max: Math.round(Math.max(...data)/10)*10 + 10, }, }] }, diff --git a/package.json b/package.json index eaa6b50..20ecb37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayzr-bot", - "version": "12.3.1", + "version": "12.3.2", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "main": "index.js", "nodemonConfig": {