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

@ -8,6 +8,7 @@ New features:
Improvements:
* Gantt chart: change bar color according to task progress
* Replace color dropdown by color picker in task forms
* Creating another task stay in the popover (no full page refresh anymore)
* Avoid scrollbar in Gantt chart for row title on Windows platform

File diff suppressed because one or more lines are too long

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