From c763ca2f9931669b01038561d897460a96b44bc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Salvador=20P=C3=A9rez=20Garc=C3=ADa?= Date: Fri, 14 Sep 2018 16:43:42 +0200 Subject: [PATCH] Fixed bug in x axis labels in dashboard Dashboard progress graph was not showing all labels in x axis when there were less than 12 samples. --- app/assets/javascripts/dashboard_graphs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/dashboard_graphs.js b/app/assets/javascripts/dashboard_graphs.js index 74e71d95f..3564daad3 100644 --- a/app/assets/javascripts/dashboard_graphs.js +++ b/app/assets/javascripts/dashboard_graphs.js @@ -214,7 +214,7 @@ var i, l, tick = [], - step = this.xColumnValues.length < 13 ? 12 : Math.round((this.xColumnValues.length - 1) / 12); + step = this.xColumnValues.length < 13 ? 1 : Math.round((this.xColumnValues.length - 1) / 12); if (this.xColumnValues.length > 1) { tick.push(0);