SetScale('textlin'); $top = 60; $bottom = 30; $left = 80; $right = 30; $graph->Set90AndMargin($left,$right,$top,$bottom); // Nice shadow $graph->SetShadow(); // Setup labels $lbl = array("Andrew\nTait","Thomas\nAnderssen","Kevin\nSpacey","Nick\nDavidsson", "David\nLindquist","Jason\nTait","Lorin\nPersson"); $graph->xaxis->SetTickLabels($lbl); // Label align for X-axis $graph->xaxis->SetLabelAlign('right','center','right'); // Label align for Y-axis $graph->yaxis->SetLabelAlign('center','bottom'); // Titles $graph->title->Set('Number of incidents'); // Create a bar pot $bplot = new BarPlot($datay); $bplot->SetFillColor('orange'); $bplot->SetWidth(0.5); $bplot->SetYMin(1990); $graph->Add($bplot); $graph->Stroke(); ?>