Set max values for graphs

This commit is contained in:
Anton Roslund
2025-04-07 22:06:57 +02:00
parent 2179f06c86
commit f06137d66f
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -39,7 +39,10 @@ async function messagesStatsGraph() {
autoSkip: false
}
},
y: { beginAtZero: true }
y: {
beginAtZero: true,
max: 10,
}
},
plugins: { legend: { display: false } },
}
+2 -1
View File
@@ -44,7 +44,8 @@ async function mostActiveNodesGraph() {
scales: {
y: {
ticks: { autoSkip: false, font: { size: 12 } }
}
},
x: { max: 300 },
},
plugins: {
legend: { display: false },