Gantt chart: change bar color according to task progress (pull-request #1195)
This commit is contained in:
@@ -8,6 +8,7 @@ New features:
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Gantt chart: change bar color according to task progress
|
||||||
* Replace color dropdown by color picker in task forms
|
* Replace color dropdown by color picker in task forms
|
||||||
* Creating another task stay in the popover (no full page refresh anymore)
|
* Creating another task stay in the popover (no full page refresh anymore)
|
||||||
* Avoid scrollbar in Gantt chart for row title on Windows platform
|
* 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]);
|
block.data("record", this.data[i]);
|
||||||
this.setBarColor(block, 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);
|
jQuery(rows[rowIdx]).append(block);
|
||||||
rowIdx = rowIdx + 1;
|
rowIdx = rowIdx + 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user