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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user