File manager - Edit - /home/autoph/public_html/portal/includes/chart/piechart_r.php
Back
<?php $ro =100; $sent =90; $comply =77; $nocomply =13; $nosurvey =10; $ro1 =130; $sent1 =70; $comply1 =87; $nocomply1 =23; $nosurvey1=40; ?> <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['Total R.O', <?php echo $ro; ?>], ['Sent Survey', <?php echo $sent; ?>], ['Comply', <?php echo $comply; ?>], ['No Response', <?php echo $nocomply; ?>], ['No Survey Sent', <?php echo $nosurvey; ?>], ]); var options = { title: 'My Daily Activities' }; var chart = new google.visualization.PieChart(document.getElementById('piechart')); chart.draw(data, options); } google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart1); function drawChart1() { var data = google.visualization.arrayToDataTable([ ['Task', 'Hours per Day'], ['Total R.O', <?php echo $ro1; ?>], ['Sent Survey', <?php echo $sent1; ?>], ['Comply', <?php echo $comply1; ?>], ['No Response', <?php echo $nocomply1; ?>], ['No Survey Sent', <?php echo $nosurvey1; ?>], ]); var options = { title: 'My Daily Activities' }; var chart1 = new google.visualization.PieChart(document.getElementById('piechart1')); chart1.draw(data, options); } </script> </head> <body> <div id="piechart" style="position:relative;left:300px;width: 500px; height: 200px;top:130px"></div><br> </body> </html>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings