Your current version of "chart-myTest.php" is missing the enhancements I
said you should make above. Replace the javascript in that file with this:
function drawChart() {
var jsonData = $.ajax({
url: "data-file.php",
dataType:"json",
async: false
}).responseText;
var data = new google.visualization.DataTable(JSON.parse(jsonData));
var chart = new
google.visualization.PieChart(document.getElementById('chart_div'));
chart.draw(data, {
// put the chart options in here
height: 800,
width: 800
});
}
google.load('visualization', '1', {'packages':['corechart'], callback:
drawChart});
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.