[請益] 請問這段程式碼 可以幫忙一下嗎@@?

看板PHP作者 (dcplay)時間18年前 (2007/12/20 17:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
<?php require_once("../lib/phpchartdir.php"); # The data for the chart $data = array(90, 60, 65, 75, 40); # The labels for the chart $labels = array("Speed", "Reliability", "Comfort", "Safety", "Efficiency"); # Create a PolarChart object of size 450 x 350 pixels $c = new PolarChart(450, 350); # Set center of plot area at (225, 185) with radius 150 pixels $c->setPlotArea(225, 185, 150); # Add an area layer to the polar chart $c->addAreaLayer($data, 0x9999ff); # Set the labels to the angular axis as spokes $angularAxisObj = $c->angularAxis(); $angularAxisObj->setLabels($labels); # Create the image and save it in a temporary location $chart1URL = $c->makeSession("chart1"); # Create an image map for the chart $imageMap = $c->getHTMLImageMap("clickline.php", "", "title='{xLabel}: US\$ {value|0}M'"); ?> <html> <body topmargin="5" leftmargin="5" rightmargin="0" marginwidth="5" marginheight="5"> <div style="font-size:18pt; font-family:verdana; font-weight:bold"> Simple Clickable Bar Chart </div> <hr color="#000080"> <div style="font-size:10pt; font-family:verdana; margin-bottom:20"> <a href="viewsource.php?file=<?php echo $_SERVER["SCRIPT_NAME"]?>">View Source Code</a> </div> <img src="getchart.php?<?php echo $chart1URL?>" border="0" usemap="#map1"> <map name="map1"> <?php echo $imageMap?> </map> </body> </html> 這程式的函式庫 function getHTMLImageMap($url, $queryFormat = "", $extraAttr = "", $offsetX = 0, $offsetY = 0) { return callmethod("LegendBox.getHTMLImageMap", $this->ptr, $url, $queryFormat, $extraAttr, $offsetX, $offsetY); } 請問結果沒有顯示圖片耶..... 不知道要修改哪邊才符合顯示 大大就想像 一個雷達圖 它可以點擊數值去連結其他的網頁 是用PHP的 chartdirector這個套件 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 125.229.201.153
文章代碼(AID): #17QZnDhj (PHP)
文章代碼(AID): #17QZnDhj (PHP)