First, I apologize for being a newb, but I am.
I have a mysql database that I've been querying with PHP and drawing
charts from the results after I format the results to JSON. It looks
something like this....
function drawYearlyChart() {
var jsonData = $.ajax({
url: "getYearlyData.php",
dataType:"json",
async: false
}).responseText;
//create data table out of JSON data from server
var data = new
google.visualization.DataTable(jsonData);
//instantiate and draw chart
var chart = new
google.visualization.SteppedAreaChart(document.getElementById('yearlyChart'));
chart.draw(data);
}
Is there a way to use controls with this sort of data source? I've
been looking at the documentation and I can't see a way to do it. When
I play around with what I got I don't get any helpful errors or
anything. Tips would be appreciated.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.