I've got a string that contains JSON formatted data. Call it
jsonString.
I'm trying to construct a DataTable using that string.
So far I've only had success with:

        var src='var foo='+jsonString+';';
        eval(src);
        var remoteData = new google.visualization.DataTable(foo, 0.5);

Oh this feels itchy.

I've had no luck passing in jsonString directly in the constructor.
Is there a 'better' way?

Thanks,
David


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to