function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
I would like to be able to actually READ this very same data from either a CSV or a JSON formatted DATA FILE!
Needless to say, any insight would be GREATLY appreciated!Thanks, in advance, for your time and consideration!Best Regards,
LEE
$(document).ready(function () {
$.ajax({ url: "/Reporting/LeaveList", data: "", dataType: "json", type: "POST", contentType: "application/json; chartset=utf-8", success: function (data) { chartData = data; }, error: function () { alert("Error loading data! Please try again."); } }).done(function () { // after complete loading data google.setOnLoadCallback(drawChart);
drawChart();
}); });--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/styZhyyAGMA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/4d244bdd-b529-4b5c-a34e-48e0b3dc971b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.