title->Set("Example with grouping and constrains"); // Setup scale $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAYWNBR); // Add the specified activities $graph->CreateSimple($data,$constrains,$progress); // .. and stroke the graph $graph->Stroke(); ?>