SetScale("textlin"); // Create a bar plots $bar1 = new BarPlot($data); // Setup the callback function $bar1->value->SetFormatCallback("cbFmtPercentage"); $bar1->value->Show(); // Add the plot to the graph $graph->Add($bar1); // .. and send the graph back to the browser $graph->Stroke(); ?>