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.
This commit is contained in:
Juan Salvador Pérez García
2018-09-14 16:43:42 +02:00
parent 4d0359f334
commit c763ca2f99

View File

@@ -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);