Gantt chart: change bar color according to task progress (pull-request #1195)

This commit is contained in:
Frederic Guillot
2015-09-12 17:36:15 -04:00
parent 58199b6b29
commit 0e4e566aa4
3 changed files with 15 additions and 1 deletions

View File

@@ -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;
}