Regards,
Luca
var data = $(form).serialize();
$.ajax({
data: data,url: "path/to/source.php",method: "POST", // or method: "GET"success: function (json) {drawChart(json);}
});
var data = new google.visualization.dataTable(json);var chart = new google.visualization.<chartType>(document.getElementById("chart_div");chart.draw(data, <options>);
header("Content-type: application/json");
// $json hold the json string
echo $json;exit;
This has been a huge problem, and that is I have not seen one php site that actually has this working. Yes, we can manipulate the tables in the html to make them work, as a whole I have not see 1 site that has accomplished this. Go to the forums and you will get code snippets, and "all you need to do" quotes, but believe me, I have not found a working template of this offering. Most of my friends have given up and went the flash route via xml. I am still holding on for a decent error free chart that will work seamlessly with html 5, php, and mysql. good luck.