title->Set("Gantt Graph using CreateSimple()"); // Setup scale $graph->ShowHeaders(GANTT_HYEAR | GANTT_HMONTH | GANTT_HDAY | GANTT_HWEEK); $graph->scale->week->SetStyle(WEEKSTYLE_FIRSTDAY); // Add the specified activities $graph->CreateSimple($data); // .. and stroke the graph $graph->Stroke(); ?>