img->SetMargin(80,60,60,80); $graph->SetScale('textlin'); $graph->SetColor('white'); $graph->SetMarginColor('navy'); $graph->SetShadow(); $graph->SetFrame(true, 'blue'); //setup the graph title $graph->title->Set('Help Desk Productivity Graph'); $graph->title->SetColor('white'); $graph->title->SetFont(FF_VERDANA, FS_BOLD, 14); //setup X axis $graph->xaxis->title->Set('Agents'); $graph->xaxis->title->SetColor('yellow'); $graph->xaxis->title->SetFont(FF_VERDANA, FS_BOLD, 15); $graph->xaxis->SetTickLabels($xdata); $graph->xaxis->SetColor('silver', 'orange'); $graph->xaxis->SetFont(FF_VERDANA, FS_NORMAL, 8); $graph->xaxis->HideTicks(); //setup the y axis $graph->yaxis->title->Set('Number of Calls Taken'); $graph->yaxis->title->SetColor('yellow'); $graph->yaxis->title->SetFont(FF_VERDANA, FS_BOLD, 15); $graph->yaxis->SetColor('silver','orange'); $graph->yaxis->SetFont(FF_VERDANA, FS_NORMAL, 8); $graph->yaxis->HideTicks(); //create the bar graph plot $bplot = new BarPlot($ydata); $bplot->SetWidth(0.75); $scol = array(255, 51, 204); $ecol = array(204, 0, 102); $bplot->SetFillGradient($scol, $ecol, GRAD_VER); //Finishing $graph->Add($bplot); $graph->Stroke(); ?>