SetScale("textlin"); $theme_class=new UniversalTheme; $graph->SetTheme($theme_class); $graph->img->SetAntiAliasing(false); $graph->title->Set('Graphique'); $graph->SetBox(false); $graph->SetMargin(40,20,36,63); $graph->img->SetAntiAliasing(); $graph->yaxis->HideZeroLabel(); $graph->yaxis->HideLine(false); $graph->yaxis->HideTicks(false,false); $graph->xgrid->Show(); $graph->xgrid->SetLineStyle("solid"); $graph->xaxis->SetTickLabels(Array('A', 'B', 'C', 'D')); $graph->xgrid->SetColor('#E3E3E3'); // Create the first line $p = new LinePlot($datay); $graph->Add($p); $p->SetColor("#6495ED"); $p->SetLegend('Line 1'); $graph->legend->SetFrameWeight(1); // Output line $graph->Stroke(); ?>