我在ubutu上使用laravell 4中的jpgraph,每件事看起来都是正确的但是下面放了,问题请帮忙
require(Config :: get('paths.storage')。“jpgraph / src / jpgraph.php”);
require(Config :: get('paths.storage')。“jpgraph / src / jpgraph_bar.php”);
$data1y = array(47, 80, 40, 116);
$data2y = array(61, 30, 82, 105);
$data3y = array(115, 50, 70, 93);
$graph = new Graph(350, 200, 'auto');
$graph->SetScale("textlin");
$theme_class = new UniversalTheme;
$graph->SetTheme($theme_class);
$graph->yaxis->SetTickPositions(array(0, 30, 60, 90, 120, 150), array(15, 45, 75, 105, 135));
$graph->SetBox(false);
$graph->ygrid->SetFill(false);
$graph->xaxis->SetTickLabels(array('A', 'B', 'C', 'D'));
$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false, false);
$b1plot = new BarPlot($data1y);
$b2plot = new BarPlot($data2y);
$b3plot = new BarPlot($data3y);
$gbplot = new GroupBarPlot(array($b1plot, $b2plot, $b3plot));
$graph->Add($gbplot);
$b1plot->SetColor("white");
$b1plot->SetFillColor("#cc1111");
$b2plot->SetColor("white");
$b2plot->SetFillColor("#11cccc");
$b3plot->SetColor("white");
$b3plot->SetFillColor("#1111cc");
$graph->title->Set("Bar Plots");
$graph->Stroke()
OUPUT
PNGIHDR^ / pHYSs + IDATx LU ^ @ҁ8 s +4 + r +f $k JM Ж bA TWT +” $ KCZ叔:·Kκ_r}指p {8} S〜 $ iZ D р F K 6 wk] 2 9s ŋsrr“##' Y f-] t ƍaaa,N |,˲,777߿**jΝtVUUR$ |?G0֬YL ?| 8 ::dɒ - [(Fqƍkmyyy6lɓ$ - < / EM> ^Wʟءjvvv * MFc1jyC&GT; E8 == СC 555 % 駪 rab ? smm O(#e k ~ w &gt; a Ɵ;ݽ{ j * / ^ | a