SetMarginColor('white'); $graph->SetScale("textlin"); $graph->SetMargin($left,$right,$top,$bottom); $graph->tabtitle->Set($title ); $graph->tabtitle->SetFont(FF_FONT2,FS_BOLD,13); $graph->yaxis->HideZeroLabel(); $graph->xgrid->Show(); $thick=6; // Create the lines of the Graph for($i=0;$iSetColor($color_val); $$temp->SetLegend($name); $x_thick=$thick-$i; if($x_thick<=1) $x_thick=1; $$temp->SetWeight($x_thick); $graph->Add($$temp); $max=0; for($j=0;$j=$max) $max=$x; else $max=$max; } } if($max>=5) { $graph->yaxis->SetLabelFormat('%d'); } $graph->legend->Pos(0,0.4,"right","center"); // Set some other color then the boring default $graph->SetColor("#6F96FF"); //$graph->SetColor("#CCDFCC"); $graph->SetMarginColor("#2447A7"); //$graph->SetMarginColor("#98C098"); $graph->xaxis->SetTickLabels($datax); $graph->xaxis->SetLabelAngle(90); // Output line $graph->Stroke(); ?>