Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/ganttex03.php
include ("../jpgraph.php");
include ("../jpgraph_gantt.php");

$graph = new GanttGraph(0,0,"auto");

// Add title and subtitle
$graph->title->Set("A nice main title");
$graph->subtitle->Set("(Draft version)");

// Show day, week and month scale

// Instead of week number show the date for the first day in the week
// on the week scale

// Make the week scale font smaller than the default

// Use the short name of the month together with a 2 digit year
// on the month scale

// Format the bar for the first activity
// ($row,$title,$startdate,$enddate)
$activity = new GanttBar(7,"Project","2001-12-21","2002-02-20");

// Yellow diagonal line pattern on a red background

// Finally add the bar to the graph

// ... and display it
Return current item: Monyet