task T1 "T1" {
task SubT11 "SubT11" {
.../...
}
task SubT12 "SubT12" {
.../...
}
}
task T2 "T2" {
task SubT21 "SubT21" {
.../...
}
task SubT22 "SubT22" {
.../...
}
}
macro CustomCellColor [
cellcolor ischildof(T1) "#FFFF00" # color for subtask of t1
cellcolor ischildof(T2) "#00FFFF" # color for subtask of t2
]
resourcereport resourceGraph "" {
headline "Resource Allocation Graph"
columns name , weekly { ${CustomCellColor}}
loadunit shortauto
sorttasks plan.start.up
}
JJay
Custom background colors don't work with 'weekly' as it already uses
background colors. The custom color is only effective for task lines,
the report only contains resource lines. The report does not have a
name nor a formats option, so nothing will ever be generated.
Chris
Ok. I tried this customization taskreport development of TJ3 tutoriel but I don't have color on my chart :(
Is there a sample with cellColor ?
macro CustomCellColor [
cellcolor istask() "#FF00FF"
cellcolor 1 "#FFFF00"
cellcolor ischildof(software) "#00FFFF"
cellcolor ischildof(AcSo) "#FF00FF"
]
# A list of tasks showing the resources assigned to each task.
taskreport development "" {
scenarios delayed
headline "Development - Resource Allocation Report"
columns hierarchindex, name, start, end, effort { title "Work" }, duration, chart { ${CustomCellColor} ${TaskTip} scale day width 800 }
timeformat "%Y-%m-%d"
hideresource ~(isleaf() & isleaf_())
sortresources name.up
}
JJay
All the columns that already use background colors won't work. That
includes 'daily', 'weekly' and so on and 'chart'. Try name, start or
end.
Chris
What do you mean by 'detailed columns'? chart & co have hardcoded
colors. You could only change the stylesheet if you don't like the
color scheme.
Chris
I want have (in chart) yellow color for "Specification" task, orange color for "Database coupling" task, purple color for "Back-End Functions" task and so one.
But because chart & co have hardcoded colors, I am pretty sure it is not possible.
JJay
Thanks,
Chris
JJay
> --
> You received this message because you are subscribed to the "TaskJuggler Users" group.
> To post to this group, send email to taskjugg...@googlegroups.com
> To unsubscribe from this group, send email to
> taskjuggler-us...@googlegroups.com
> For more information about TaskJuggler visit http://www.taskjuggler.org
Thanks a lot! I've applied your patch.
Chris