Hi,
I have a question about the combination of Google Visualization API and JSON.
At the moment I use the following DataTable for setting up a Pie Chart:
var data = new google.visualization.DataTable();
data.addColumn('string', 'Topping');
data.addColumn('number', 'Slices');
data.addRows([
['Mushrooms', 3],
['Onions', 1],
['Olives', 1],
['Zucchini', 1],
['Pepperoni', 2]
]);
Instead of using a DataTable, I would like to use JSON in my J2EE application.
How can I accomplish this? I know how I can setup a JSON string, but not when there are both rows and columns in play.
Hopefully someone will help me.
Thanks in advance!