I\'m trying to work with Google charts API, but I get an error I can\'t understand:
Here is my code:
Try this way. This is working fine for me
var timeout;
google.charts.load('current', { 'packages': ['corechart'] });
$(document).ready(function(){
timeout = setInterval(function () {
if (google.visualization != undefined) {
drawChart();
clearInterval(timeout);
}
}, 300);
});
function drawChart(range, type) {
var data = new google.visualization.DataTable();
.....
}