我和視頻里一模一樣為什么就是沒圖像呢????
<?php?
require "./src/jpgraph.php";
require "./src/jpgraph_line.php";
$graph = new Graph(600,400);
/*
?* lin直線
?* text文本
?* int整數(shù)
?* log對(duì)數(shù)
?*/
$graph->SetScale('textint');
$graph->title->Set('this is a title');
$data = array(1=>10,2=>24,3=>45,4=>30,5=>24,6=>10,7=>30,8=>14,9=>45,10=>30);
$linePlot = new LinePlot($data);
$linePlot->SetLegend('tuli');
$graph->Add($linePlot);
$graph->Stroke();
?>
2016-07-08
你把數(shù)組換成從0開始而不是從1開始就可以了
2017-12-22
厲害厲害 歹虧從這里看各位的問題和改錯(cuò)經(jīng)驗(yàn)了 不然又要被坑很長(zhǎng)時(shí)間
2016-10-01
數(shù)組從0開始。
2016-10-01
數(shù)組從0開始。
2016-05-07
我也是,不過直接輸出圖片文件是可以的