fix: calculate other correctly

This commit is contained in:
Anna 2021-10-23 18:25:54 -04:00
parent b70f29b6a8
commit 5c15af145b
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
continue;
}
other.y += 1;
other.y += data[i].y;
}
newData.push(other);
@ -117,7 +117,7 @@
}
makeChart('duties', 'dutiesChart', 'pie', true);
makeChart('hosts', 'hostsChart', 'pie');
makeChart('hosts', 'hostsChart', 'doughnut');
makeChart('hours', 'hoursChart', 'bar');
makeChart('days', 'daysChart', 'bar');
})();