Fixed colours in the progress graphic

progress graph will be shown in blue
successful graph will be shown in orange
This commit is contained in:
Juan Salvador Pérez García
2018-09-14 11:54:57 +02:00
parent 0bd381aa5e
commit 38472cb670

View File

@@ -140,8 +140,13 @@
}; };
ProposalGraph.prototype.draw = function() { ProposalGraph.prototype.draw = function() {
var colors = {};
this.formatXColumnValues(); this.formatXColumnValues();
colors[this.progressColumnValues[0]] = '#004a83';
colors[this.successfulColumnValues[0]] = '#ff7f0e';
c3.generate({ c3.generate({
bindto: '#' + this.targetId, bindto: '#' + this.targetId,
data: { data: {
@@ -150,7 +155,8 @@
this.xColumnValues, this.xColumnValues,
this.progressColumnValues, this.progressColumnValues,
this.successfulColumnValues this.successfulColumnValues
] ],
colors: colors
}, },
axis: { axis: {
y: { y: {