aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/dashboard.js
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2018-05-29 19:37:34 +0200
committerMarius Halden <marius.h@lden.org>2018-05-29 19:37:34 +0200
commit782457d016084c8de04989dbc824a71899f8b41b (patch)
tree56d14e1a988396e43c8693ff3486e40d16962add /web/js/dashboard.js
parent140d40e3eab4cb1e7aa9f95cbc24a0f13180b606 (diff)
parent6e2da95bc6a758c0cf070b9ddd51acc769f7acf1 (diff)
Merge tag 'v2.3.1' into fiksgatami-dev
Diffstat (limited to 'web/js/dashboard.js')
-rw-r--r--web/js/dashboard.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/js/dashboard.js b/web/js/dashboard.js
index a6e06e048..b35af2996 100644
--- a/web/js/dashboard.js
+++ b/web/js/dashboard.js
@@ -137,6 +137,11 @@ $(function(){
setUpLabelsForChart(this);
}
},
+ elements: {
+ line: {
+ cubicInterpolationMode: 'monotone'
+ }
+ },
layout: {
padding: {
top: 4
@@ -179,8 +184,8 @@ $(function(){
rowValues.push( parseInt($(this).find('td').text(), 10) );
});
- for (var i=colours.length; i<rowLabels.length; i++) {
- colours[i] = colours[i % colours.length];
+ for (var l=colours.length, i=l; i<rowLabels.length; i++) {
+ colours[i] = colours[i % l];
}
var barChart = new Chart($canvas, {