daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Jun 19th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. google.charts.load("current", {packages:["corechart"]});;
  2.   google.charts.setOnLoadCallback(drawChart);
  3.  
  4.   function drawChart()
  5.   {
  6.    var data = google.visualization.arrayToDataTable([
  7.     ['classificacao','Number'],
  8.     <?php
  9.     while ($row=mysqli_fetch_array($result))
  10.     {
  11.       echo "['".$row["classificacao"]."', ".$row["number"]."],";
  12.     }
  13.     ?>
  14.     ]);
  15.    var options = {
  16.     title:'Classificações do refeitório',
  17.     is3D:true
  18.   };
  19.   var chart = new google.visualization.PieChart(document.getElementById('piechart'));
  20.   chart.draw(data,options);
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top