?? cakeimg.php
字號:
<?
include ("inc/conn.php");
include ("inc/jpgraph/jpgraph.php");
include ("inc/jpgraph/jpgraph_pie.php");
include ("inc/jpgraph/jpgraph_pie3d.php");
$labLst=explode(",",substr($ARRAY_FIELD1,0,strlen($ARRAY_FIELD1)-1));
$datLst=explode(",",substr($graphValues1,0,strlen($graphValues1)-1));
// Create the Pie Graph.
$graph = new PieGraph(700,400,"auto");
//$graph->SetShadow();
// Set A title for the plot
$graph->title->Set($MODULENAME);
$graph->title->SetFont(FF_SIMSUN,FS_BOLD,18);
$graph->title->SetColor("darkblue");
$graph->legend->SetFont(FF_SIMSUN,FS_NORMAL,10);
//$graph->legend->Pos(0.1,0.2);
// Create pie plot
$p1 = new PiePlot3d($datLst);
$p1->SetTheme("td");
$p1->SetCenter(0.4);
$p1->SetAngle(60);
$p1->SetLabelType(PIE_VALUE_ADJPER);
$p1->value->SetFont(FF_SIMSUN,FS_NORMAL,10);
$p1->SetLegends($labLst);
$graph->Add($p1);
$graph->Stroke();
?>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -