summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/templates/summary.html
diff options
context:
space:
mode:
authorSimon Rettberg2022-07-04 18:25:06 +0200
committerSimon Rettberg2022-07-04 18:25:06 +0200
commit9ca5c9bca40fa7e962b932364228731a6b9714a8 (patch)
treeaae9463091b88826b6a931013ae6eab1935d6df6 /modules-available/statistics/templates/summary.html
parent[statistics] Add a few more RAM/HDD size groups, future is catching up.. (diff)
downloadslx-admin-9ca5c9bca40fa7e962b932364228731a6b9714a8.tar.gz
slx-admin-9ca5c9bca40fa7e962b932364228731a6b9714a8.tar.xz
slx-admin-9ca5c9bca40fa7e962b932364228731a6b9714a8.zip
[js_chart] Update to Chart.js 3.0.8
Diffstat (limited to 'modules-available/statistics/templates/summary.html')
-rw-r--r--modules-available/statistics/templates/summary.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules-available/statistics/templates/summary.html b/modules-available/statistics/templates/summary.html
index 3ede7bc5..a71d50c0 100644
--- a/modules-available/statistics/templates/summary.html
+++ b/modules-available/statistics/templates/summary.html
@@ -28,10 +28,11 @@
document.addEventListener("DOMContentLoaded", function() {
var data = {{{json}}};
var sel = false;
- new Chart(document.getElementById('usagehist').getContext('2d')).Line(data, {
+ new Chart(document.getElementById('usagehist').getContext('2d'), {type: 'line', data: data, options: {
animation: false,
- pointHitDetectionRadius: 5
- });
+ pointHitDetectionRadius: 5,
+ plugins: { legend: {position: 'left' }}
+ }});
}, false);
</script>
</div>