From 7f9e3a7487ab607c971a8d5a81a38e6c182ee523 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 21 Nov 2018 10:50:19 +0100 Subject: [PATCH] begin y at 0 --- static/js/histogram.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/js/histogram.js b/static/js/histogram.js index 5e35cd8..0cc4697 100644 --- a/static/js/histogram.js +++ b/static/js/histogram.js @@ -59,6 +59,13 @@ function setData(data) { title: { display: true, text: 'Histogram of times of lessons' + }, + scales: { + yAxes: [{ + ticks: { + beginAtZero: true + } + }] } } }).update();