summaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-03-24 01:44:41 +0100
committeruser <user@node5.net>2024-03-24 01:44:41 +0100
commite5254d253900d830f8e9f5011266811c356d4323 (patch)
tree3949720d36662d126664a69c66386fea682860cb /src/static
parent261a5ca6cf3048c067ff77e4ab98dbb6cc135f4c (diff)
chart responsive
Diffstat (limited to 'src/static')
-rw-r--r--src/static/histogram.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/static/histogram.js b/src/static/histogram.js
index 6046766..d76fc60 100644
--- a/src/static/histogram.js
+++ b/src/static/histogram.js
@@ -10,6 +10,9 @@ var myChart = new Chart(ctx, {
datasets: datasets
},
options: {
+ responsive: true,
+ maintainAspectRatio: false,
+
scales: {
y: {
stacked: true,