clearTheme(); $graph->SetScale("textlin"); $graph->SetShadow(); $graph->img->SetMargin(40,30,20,40); // Create the linear plots for each category $dplot[] = new LinePLot($datay1); $dplot[] = new LinePLot($datay2); $dplot[] = new LinePLot($datay3); $dplot[0]->SetFillColor("red"); $dplot[1]->SetFillColor("blue"); $dplot[2]->SetFillColor("green"); // Create the accumulated graph $accplot = new AccLinePlot($dplot); // Add the plot to the graph $graph->Add($accplot); $graph->xaxis->SetTextTickInterval(2); $graph->title->Set("Example 17"); $graph->xaxis->title->Set("X-title"); $graph->yaxis->title->Set("Y-title"); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph->yaxis->title->SetFont(FF_FONT1,FS_BOLD); $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); // Display the graph $graph->Stroke(); ?>