<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
// Load google charts
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
// Draw the chart and set the chart values
function drawChart() {
var data = google.visualization.arrayToDataTable([
['status', 'persent'],
['ผ่าน', 25.51],
['ไม่ผ่าน', 74.49]
]);
// Optional; add a title and set the width and height of the chart
var options = {'title':'ยอด 11 นาย, M (2), A (-), S (5), T (-), O (4)', 'width':550, 'height':400};
// Display the chart inside the <div> element with id="piechart"
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>