Hi Jinji --
Thanks so much. Am working with the Java Datasource Library. The new
version of JsonRenderer.renderDataTable(...) you pointed out resolved
my worries over the one I was using being deprecated.
>From there figured out that while the resulting Json string is missing
quotes around the attributes, it can be parsed in Javascript by
wrapping it in parens, and passing that object to the the DataTable
constructor as follows:
var args = eval('('+data+')');
var dataTable = new google.visualization.DataTable(args);
So it seems like one can't pass a DataTable object from the server to
the client (and vice versa) directly like one could an ordinary bean-
like object, using GET and POST in a restful service.
On the other hand, there's a lot to be gained by sticking closely to
the officially supported path, exposing data as a Google ChartTools
DataSource.
--
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.