Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo '</tbody>
- </table>
- <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
- <script type="text/javascript">
- google.charts.load("current", {packages:["corechart"]});
- google.charts.setOnLoadCallback(drawChart);
- function drawChart() {
- var data = google.visualization.arrayToDataTable([
- ["Referrer", "Hosts"],
- ["yandex_200", '.number_format($y).'],
- ["google_200", '.number_format($g).'],
- ["mailru_200", '.number_format($m).'],
- ["bing_200", '.number_format($b).'],
- ["other_200", '.number_format($h).']
- ]);
- var options = {
- title: "My Daily Stats",
- is3D: true,
- };
- var chart = new google.visualization.PieChart(document.getElementById("piechart_3d"));
- chart.draw(data, options);
- }
- </script>
- <br><br>
- <center>
- <div id="piechart_3d" style="width: 1350px; height: 750px;"></div>
- </center>
- </body>
- </html>
- ';
Advertisement
Add Comment
Please, Sign In to add comment