diff --git a/app/assets/javascripts/dashboard_graphs.js b/app/assets/javascripts/dashboard_graphs.js index df6a8924c..f878e3b15 100644 --- a/app/assets/javascripts/dashboard_graphs.js +++ b/app/assets/javascripts/dashboard_graphs.js @@ -140,8 +140,13 @@ }; ProposalGraph.prototype.draw = function() { + var colors = {}; + this.formatXColumnValues(); + colors[this.progressColumnValues[0]] = '#004a83'; + colors[this.successfulColumnValues[0]] = '#ff7f0e'; + c3.generate({ bindto: '#' + this.targetId, data: { @@ -150,7 +155,8 @@ this.xColumnValues, this.progressColumnValues, this.successfulColumnValues - ] + ], + colors: colors }, axis: { y: {