Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ("config.php");
- include ("JPGraph/src/JPGraph.php");
- include ("JPGraph/src/JPGraph_pie.php");
- include ("JPGraph/src/JPGraph_pie3d.php");
- $sql = mysql_query("SELECT * FROM tek_rekap_mhs") or die(mysql_error());
- while($row = mysql_fetch_array($sql)){
- $data[] = $row[2];
- $leg[] = $row[1];
- }
- $graph = new PieGraph(700,600,"auto");
- $graph->SetScale('textint');
- $graph->img->SetMargin(50,50,0,0);
- $graph->SetShadow();
- $graph->title->Set("Rekapitulasi Jumlah Mahasiswa");
- $bplot = new PiePlot3D($data);
- $bplot->SetCenter(0.5);
- $bplot->SetLegends($leg);
- $graph->Add($bplot);
- $graph->Stroke();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement