Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2013
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.16 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.   <head>
  4.     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
  5.     <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  6.     <script type="text/javascript">
  7.       google.load('visualization', '1', {packages: ['corechart']});
  8.     </script>
  9.     <script type="text/javascript">
  10.       function drawVisualization()
  11.       {
  12.         // Create and populate the data table.
  13.         var data = google.visualization.arrayToDataTable([
  14.           ['',''],
  15.           ['Completed', <?php echo intval($complete); ?>],
  16.           ['Not completed', <?php echo intval($not_complete); ?>]
  17.         ]);
  18.      
  19.         // Create and draw the visualization.
  20.         new google.visualization.PieChart(document.getElementById('visualization')).
  21.             draw(data);
  22.       }
  23.       google.setOnLoadCallback(drawVisualization);
  24.     </script>
  25.   </head>
  26.   <body style="font-family: Arial;border: 0 none;">
  27.     <div id="visualization" style="width: 600px; height: 400px;"></div>
  28.   </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement