jpgraph类库引入后写代码出现了问题

require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_pie.php');
require_once ('jpgraph/jpgraph_pie3d.php');

$browser=array('IE','Chorm','Firefox','safari','other');
$precent=array(58,18,16,6,2);

$graph=new PieGraph(400,300);
$graph->title->Set("浏览器市场额一览图");
$graph->title->SetFont(FF_SIMSUN,FS_BOLD,18);
$graph->title->SetColor("blue");

$p1=new pieplot3D($precent);
$p1->explodeSlice(1);
$p1->setSize(0.4);
$p1->SetCenter(0.45,0.42);
$p1->SetLegends($browser);
$graph->add($p1);
$graph->Stroke();

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!