summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics')
-rw-r--r--modules-available/statistics/templates/summary.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/statistics/templates/summary.html b/modules-available/statistics/templates/summary.html
index 461b4423..a0efd531 100644
--- a/modules-available/statistics/templates/summary.html
+++ b/modules-available/statistics/templates/summary.html
@@ -30,6 +30,7 @@
var markings = {{{markings}}};
var markMax = Math.max(...markings) * 3;
+ if (markMax <= 0) markMax = 1;
var oldDraw = Chart.prototype._drawDatasets;