| Server IP : 172.67.187.206 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/check/webadmin/S_Graph/ |
Upload File : |
<?php
include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_pie.php");
include("jpgraph/jpgraph_pie3d.php");
$graph = new PieGraph(300,500);
for(i=0;i<=2;i++)
{
$data[] = 10;
}
$leg=array(iconv('tis-620','utf-8',"นักเรียนที่มาเรียน"),iconv('tis-620','utf-8',"นักเรียนที่ขาดเรียน"));
$graph=new PieGraph (500,300,"auto");
$graph->Setshadow();
$graph->title->set(iconv('tis-620','utf-8',"สรุปนักเรียนมาเรียน ขาดเรียน รายวัน"));
$graph->title->SetFont(FF_TAHOMA,FS_BOLD);
$p1=new PiePlot3D($data);
$p1->SetSize(.4);
$p1->SetCenter(0.35);
$p1->SetStartAngle(10);
$p1->SetAngle(30);
$p1->SetLegends($leg);
$a=array_search(max($data),$data);
$p1->ExplodeSlice($a);
$graph->Add($p1);
$graph->Stroke();
?>