SaadTaziGChartBundle
SaadTaziGChartBundle copied to clipboard
Gantt chart : problem with task dependency ?
Hi, thank you so much for you bundel ! :-)
But it seems that is a problem with gantt chart and the task depency. I don't want to use dependency feature for my tasks and I set the last values to null in my Datatable.
`$i = 0; foreach ($projects as $project){
$datas[] =
array(
'id1' => $i,
'id2' => $project->getProjectName(),
'id3' => $i,
'id4' => \DateTime::createFromFormat ( 'Y-m-d' , $project->getStartDate()->format('Y-m-d')),
'id5' => \DateTime::createFromFormat ( 'Y-m-d' , $project->getEndDate()->format('Y-m-d')),
'id6' => 80000,
'id7' => 100,
'id8' => null);
$i++;
}
foreach($datas as $data) {
$date = $data['id4']->format("Y, ").(intval($data['id4']->format("m"))-1).$data['id4']->format(", d");
$date2 = $data['id5']->format("Y, ").(intval($data['id5']->format("m"))-1).$data['id5']->format(", d");
$ganttProject
->addRow(
[['v' => $data['id1']],
['v' => $data['id2']],
['v' => $data['id3']],
['v' => "new Date[[[{$date}]]]"],
['v' => "new Date[[[{$date2}]]]"],
['v' => $data['id6']],
['v' => $data['id7']],
['v' => $data['id8']]]);
};`
But in the tooltip of my second task, the label "Is on critical path" appears ... I don't understand what is wrong in my code ...
Can you help me ? :-) Kr