From f06137d66fc312cf405d207dd7c0ef48c52a74f1 Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Mon, 7 Apr 2025 22:06:57 +0200 Subject: [PATCH] Set max values for graphs --- static/js/status/messagesChart.js | 5 ++++- static/js/status/most-active-nodes.js | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/status/messagesChart.js b/static/js/status/messagesChart.js index 23646f6..8ee8890 100644 --- a/static/js/status/messagesChart.js +++ b/static/js/status/messagesChart.js @@ -39,7 +39,10 @@ async function messagesStatsGraph() { autoSkip: false } }, - y: { beginAtZero: true } + y: { + beginAtZero: true, + max: 10, + } }, plugins: { legend: { display: false } }, } diff --git a/static/js/status/most-active-nodes.js b/static/js/status/most-active-nodes.js index 45de66a..51b22c6 100644 --- a/static/js/status/most-active-nodes.js +++ b/static/js/status/most-active-nodes.js @@ -44,7 +44,8 @@ async function mostActiveNodesGraph() { scales: { y: { ticks: { autoSkip: false, font: { size: 12 } } - } + }, + x: { max: 300 }, }, plugins: { legend: { display: false },