clearTheme(); $graph->SetScale("textlin"); $graph->SetMarginColor('lightblue'); $graph->title->Set('Box Stock chart example'); $graph->subtitle->Set('(Indented X-axis)'); // Create a new stock plot $p1 = new BoxPlot($datay); // Width of the bars (in pixels) $p1->SetWidth(9); // Indent bars so they dont start and end at the edge of the // plot area $p1->SetCenter(); // Uncomment the following line to hide the horizontal end lines //$p1->HideEndLines(); // Add the plot to the graph and send it back to the browser $graph->Add($p1); $graph->Stroke(); ?>