my chart not resive data see the site here:http://www.syndrom-event.net/chart.php
<?php
$con = mysqli_connect('localhost','root','*****','db');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>TechJunkGigs</title>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
// Load the Visualization API and the corechart package.
google.charts.load('current', {'packages':['corechart']});
// Set a callback to run when the Google Visualization API is loaded.
google.charts.setOnLoadCallback(drawChart);
// Callback that creates and populates a data table,
// instantiates the pie chart, passes in the data and
// draws it.
function drawChart() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'edate');data.addColumn('number', 'belob')
data.addRows([
<?php
$query = "SELECT edate, SUM(belob) FROM student WHERE id ='".$id."' GROUP BY edate ORDER BY edate";
$exec = mysqli_query($con,$query);
while($row = mysqli_fetch_array($exec)){
echo "['".$row['edate']."',".$row['belob']."],";
}
?>
]);
// Set chart options
var options = {'title':'How Much Pizza I Ate Last Night',
'width':600,
'height':400};
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
</head>
<body>
<div class="container-fluid">
<div id="chart_div" style="width: 100%; height: 500px;"></div>
</div>
</body>
</html>