SetLegends(array_keys($_SESSION['graph']['occupancy'])); # It seems the guide lines break the grpah if there are large number of points. //$plot->SetGuideLines(false,false); //$plot->SetGuideLinesAdjust(1.0); $plot->value->SetFormat('%2.1f%%'); $plot->SetCenter(200,100); $plot->SetSize(60); $plot->SetTheme('sand'); $graph->Add($plot); $graph->legend->SetFillColor('azure'); $graph->SetMarginColor('azure2'); $graph->title->Set(sprintf('Storage Used by Last Access for %s',$app['server']->GetStatusDetail('SERVER_NAME'))); # Display the chart unset($_SESSION['graph']['occupancy']); $graph->Stroke(); ?>