
这是一个php
php
···
<?php
include (“src/jpgraph.php”);
include (“src/jpgraph_pie.php”);
include (“src/jpgraph_pie3d.php”);
$data = array(19,23,34,38,45,67,71,78,85,87,90,96);
$graph = new PieGraph(500,300);
$graph->SetShadow();
$graph->title->Set(“年度收支表”);
$graph->title->SetFont(FF_SIMSUN,FS_BOLD);
$pieplot = new PiePlot3D($data);//创建PiePlot3D对象
$pieplot->SetCenter(0.4);//设置饼图中心的位置
$pieplot->SetLegends($gDateLocale->GetShortMonth());//设置图例
$graph->Add($pieplot);
$graph->Stroke();
?>
···




近期评论