Gantt chart: change bar color according to task progress (pull-request #1195)
This commit is contained in:
parent
58199b6b29
commit
0e4e566aa4
|
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue