clearTheme(); $graph->img->SetMargin(40,80,40,40); $graph->SetScale("textlin"); $graph->SetShadow(); $graph->title->Set('Center the line points in bars'); $line = new LinePlot($ydata); $line->SetBarCenter(); $line->SetWeight(2); $bar = new BarPlot($ydata); $bar2 = new BarPlot($ydata); $bar2->SetFillColor("red"); $gbar = new GroupbarPlot(array($bar,$bar2)); $graph->Add($gbar); $graph->Add($line); // Output line $graph->Stroke(); ?>