Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
- <script type="text/javascript" src="http://www.google.com/jsapi"></script>
- <script type="text/javascript">
- google.load('visualization', '1', {packages: ['corechart']});
- </script>
- <script type="text/javascript">
- function drawVisualization()
- {
- // Create and populate the data table.
- var data = google.visualization.arrayToDataTable([
- ['',''],
- ['Completed', <?php echo intval($complete); ?>],
- ['Not completed', <?php echo intval($not_complete); ?>]
- ]);
- // Create and draw the visualization.
- new google.visualization.PieChart(document.getElementById('visualization')).
- draw(data);
- }
- google.setOnLoadCallback(drawVisualization);
- </script>
- </head>
- <body style="font-family: Arial;border: 0 none;">
- <div id="visualization" style="width: 600px; height: 400px;"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement