I wanted to use my jsonData as source to my arraytoDataTable().But it is
not working.I would like to ask how can I use this method right:
var jsonData = $.ajax({
url: "sampleseptember.php",
dataType: "json",
async: false
}).responseText;
var obj = jQuery.parseJSON();
var dataseptember =
google.visualization.arrayToDataTable(jsonData);
dataseptember.addColumn('date', 'time_stamp');
dataseptember.addColumn('number', 'ph');
dataseptember.addColumn('number', 'moist');
$.each(results, function (i, row) {
data.addRow([
new Date(row.time_stamp),
parseFloat(row.ph),
parseFloat(row.moist)
]);
});
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/0d09f8c6-9d42-49ff-9807-9f482e3cb5c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.