Gantt chart: change bar color according to task progress (pull-request #1195)
This commit is contained in:
@@ -198,6 +198,19 @@ Gantt.prototype.addBlocks = function(slider, start) {
|
||||
|
||||
block.data("record", this.data[i]);
|
||||
this.setBarColor(block, this.data[i]);
|
||||
|
||||
block.append(jQuery("<div>", {
|
||||
"css": {
|
||||
"z-index": 0,
|
||||
"position": "absolute",
|
||||
"top": 0,
|
||||
"bottom": 0,
|
||||
"background-color": series.color.border,
|
||||
"width": series.progress,
|
||||
"opacity": 0.4
|
||||
}
|
||||
}));
|
||||
|
||||
jQuery(rows[rowIdx]).append(block);
|
||||
rowIdx = rowIdx + 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user