spiderex6.1.php
来自「eGroupWare is a multi-user, web-based gr」· PHP 代码 · 共 42 行
PHP
42 行
<?php
include ("../jpgraph.php");
include ("../jpgraph_spider.php");
// Some data to plot
$data = array(55,80,46,21,95);
$data2 = array(65,95,50,75,60);
$axtitles=array("Jan","Feb","Mar","Apr","May");
// Create the graph and the plot
$graph = new SpiderGraph(250,200,"auto");
$graph->legend->Pos(0.05,0.2);
$plot = new SpiderPlot($data);
$plot->SetLegend("Defects");
$plot2 = new SpiderPlot($data2);
$plot2->SetFill(false);
$plot2->SetLineWeight(2);
$plot2->SetColor("red");
$plot2->SetLegend("Target");
// Set position and size
$graph->SetCenter(0.5,0.55);
$graph->SetTitles($axtitles);
$graph->title->Set("Result 2001 (no anti-aliasing)");
$graph->title->SetFont(FF_FONT1,FS_BOLD);
$graph->SupressTickMarks();
$graph->SetShadow();
//$graph->SetColor("teal");
$graph->grid->SetLineStyle("solid");
$graph->grid->SetColor("green");
$graph->grid->Show();
// Add the plot and display the graph
//$graph->Add($plot);
$graph->Add($plot2);
$graph->Stroke();
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?