aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/js/dashboard.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/dashboard.js b/web/js/dashboard.js
index 3bac4f983..a6e06e048 100644
--- a/web/js/dashboard.js
+++ b/web/js/dashboard.js
@@ -179,6 +179,10 @@ $(function(){
rowValues.push( parseInt($(this).find('td').text(), 10) );
});
+ for (var i=colours.length; i<rowLabels.length; i++) {
+ colours[i] = colours[i % colours.length];
+ }
+
var barChart = new Chart($canvas, {
type: 'horizontalBar',
data: {