piterskiy

Bots stat foogle charts

Sep 5th, 2018
23,480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1. echo '</tbody>
  2. </table>
  3.  
  4.  
  5.  
  6. <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
  7.    <script type="text/javascript">
  8.      google.charts.load("current", {packages:["corechart"]});
  9.      google.charts.setOnLoadCallback(drawChart);
  10.      function drawChart() {
  11.        var data = google.visualization.arrayToDataTable([
  12.          ["Referrer", "Hosts"],
  13.          ["yandex_200", '.number_format($y).'],
  14.          ["google_200", '.number_format($g).'],
  15.          ["mailru_200", '.number_format($m).'],
  16.          ["bing_200", '.number_format($b).'],
  17.          ["other_200", '.number_format($h).']
  18.        ]);
  19.  
  20.        var options = {
  21.          title: "My Daily Stats",
  22.          is3D: true,
  23.        };
  24.  
  25.        var chart = new google.visualization.PieChart(document.getElementById("piechart_3d"));
  26.        chart.draw(data, options);
  27.      }
  28.    </script>
  29.    
  30. <br><br>
  31. <center>
  32. <div id="piechart_3d" style="width: 1350px; height: 750px;"></div>
  33. </center>
  34.  
  35.  
  36.  
  37. </body>
  38. </html>
  39. ';
Advertisement
Add Comment
Please, Sign In to add comment