|
<script type="text/javascript">
var unscheduledData = [
{
taskID: 1,
taskName: "Project Schedule",
startDate: null,
endDate: null,
taskColor: "#F2A4A7",
progressColor: "#DE605C",
subtasks: [
{
taskID: 2,
taskName: "Planning",
startDate: null,
endDate: null,
taskColor: "#79BDC9",
progressColor: "#59AAB4",
},
{ taskID: 3, taskName: "Plan timeline", startDate: null, endDate: null, BaselineStartDate: null, BaselineEndDate: null, progress: "60", resourceId: [1] },
{ taskID: 4, taskName: "Plan budget", startDate: null, endDate: null, duration: 1, progress: "90", BaselineStartDate: null, BaselineEndDate: null, resourceId: [5] },
{ taskID: 5, taskName: "Allocate resources", startDate: null, endDate: null, duration: 1, progress: "75", resourceId: [6] },
{ taskID: 6, taskName: "Planning complete", startDate: null, endDate: null, duration: null, predecessor: "3FS,5FS", resourceId: [1] }
]
}
];
$(function () {
$("#GanttContainer").ejGantt({
dataSource: unscheduledData,
durationMapping: "duration",
//..
});
});
</script> |