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