1 <html>2 <head>3 <script type="text/javascript" src="https://www.google.com/jsapi"></script>4 <script type="text/javascript">5 google.load("visualization", "1", {packages:["corechart"]});6 google.setOnLoadCallback(drawChart);7 function drawChart() {8 var data = google.visualization.arrayToDataTable([9 ['Task', 'Hours per Day'],10 ['Work', 11],11 ['Eat', 2],12 ['Commute', 2],13 ['Watch TV', 2],14 ['Sleep', 7]15 ]);16 17 var options = {18 title: 'My Daily Activities',19 is3D: true,20 };21 22 var chart = new google.visualization.PieChart(document.getElementById('piechart_3d'));23 chart.draw(data, options);24 }25 </script>26 </head>27 <body>28 <div id="piechart_3d" style="width: 900px; height: 500px;"></div>29 </body>30 </html>31
Enlace
El enlace para compartir es: