我想用php創建圖形。我已經測試過jpgraph的例子。但它顯示錯誤 像如何使用php顯示來自數據庫值的圖形?
> The image 「http://localhost/test/jpgraphtest.php」 cannot be displayed
> because it contains errors.
<?php
include('phpgraphlib.php');
$graph = new PHPGraphLib(500,350);
$data = array(12124, 5535, 43373, 22223, 90432, 23332, 15544, 24523,
32778, 38878, 28787, 33243, 34832, 32302);
$graph->addData($data);
$graph->setTitle('Widgets Produced');
$graph->setGradient('red', 'maroon');
$graph->createGraph();
?>
什麼問題?該文件有錯誤解決這些錯誤我的意思是這個問題是模糊的顯示相關的錯誤和源代碼 – 2013-05-06 05:10:47
隱藏的代碼... – matzone 2013-05-06 05:19:47