Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gantt chart : problem with task dependency ? #26

Open
benbet opened this issue Dec 6, 2018 · 0 comments
Open

Gantt chart : problem with task dependency ? #26

benbet opened this issue Dec 6, 2018 · 0 comments

Comments

@benbet
Copy link

benbet commented Dec 6, 2018

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

@benbet benbet changed the title Gantt chart : Impossibe to set dependencies to null Gantt chart : problem with task dependency ? Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant