Hello Yves,
You have a couple of problems with this. The first is that the corechart package does not include the code to produce tables. You need to change
google.charts.load('current', {'packages':['corechart']});
to
google.charts.load('current', {'packages':['table']});
I use the GID version of the code you used rather than SHEETS, I just find it easier, and the code below works...
<script>
google.charts.load('current', {'packages':['table']});
google.charts.setOnLoadCallback(drawGID);
function drawGID() {
var queryString = encodeURIComponent('SELECT A, B,C, D, E');
var query = new google.visualization.Query(
query.send(handleQueryResponse);
}
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
return;
}
var data = response.getDataTable();
var chart = new google.visualization.Table(document.getElementById('chart_div'));
chart.draw(data);
}
</script>
<div id="chart_div"></div>
And this is what it produces...