|
@@ -119,14 +119,14 @@ function HandleEvents(Ctrl) { |
|
|
|
|
|
|
|
|
function displayit(Set_of_Task, Set_of_Area, key) { |
|
|
function displayit(Set_of_Task, Set_of_Area, key) { |
|
|
// Try to compute time range |
|
|
// Try to compute time range |
|
|
Set_of_Task.sort(function(a, b) { |
|
|
|
|
|
return a.endDate - b.endDate; |
|
|
|
|
|
}); |
|
|
|
|
|
timeDomainEnd = Set_of_Task[Set_of_Task.length - 1].endDate; |
|
|
|
|
|
Set_of_Task.sort(function(a, b) { |
|
|
Set_of_Task.sort(function(a, b) { |
|
|
return a.startDate - b.startDate; |
|
|
return a.startDate - b.startDate; |
|
|
}); |
|
|
}); |
|
|
timeDomainStart = Set_of_Task[0].startDate; |
|
|
timeDomainStart = Set_of_Task[0].startDate; |
|
|
|
|
|
Set_of_Task.sort(function(a, b) { |
|
|
|
|
|
return a.endDate - b.endDate; |
|
|
|
|
|
}); |
|
|
|
|
|
timeDomainEnd = Set_of_Task[Set_of_Task.length - 1].endDate; |
|
|
|
|
|
|
|
|
// Prepare scales |
|
|
// Prepare scales |
|
|
xScale = d3.scale.ordinal() |
|
|
xScale = d3.scale.ordinal() |
|
@@ -197,7 +197,9 @@ function displayit(Set_of_Task, Set_of_Area, key) { |
|
|
.attr("rx", 5) |
|
|
.attr("rx", 5) |
|
|
.attr("ry", 5) |
|
|
.attr("ry", 5) |
|
|
.attr("filter", "url(/img/shadow.svg#dropshadow)") |
|
|
.attr("filter", "url(/img/shadow.svg#dropshadow)") |
|
|
//.attr("style", "fill:url(/img/shadow.svg#BoxGradient)") |
|
|
|
|
|
|
|
|
.attr("style", function(d){ |
|
|
|
|
|
return "fill:url(/img/shadow.svg#BoxGradient-"+ taskStatus[d.status] +")" |
|
|
|
|
|
}) |
|
|
.attr("class", function(d){ |
|
|
.attr("class", function(d){ |
|
|
if(taskStatus[d.status] == null) |
|
|
if(taskStatus[d.status] == null) |
|
|
{ return "bar";} |
|
|
{ return "bar";} |
|
|