Hi,
The example uses an ajax call to a php file to return json file data.
I saved the php file and sampleData.json file to a location on the sharepoint. The php file simply says:
In my drawChart function I set the url parameter to the location of the php file as below. However, the chart is not drawn. Am I doing something obviously wrong? I think it may be the url parameter? Any ideas?
function drawChart() {
var jsonData = $.ajax({
dataType:"json",
async: false
}).responseText;
// Create our data table out of JSON data loaded from server.
var data = new google.visualization.DataTable(jsonData);
}
Thanks
K