Yes, you can do something similar - you just have to parse the data from
your server into a DataTable object.
On a side note, you shouldn't use the eval statement - it is unsecure and
will execute any javascript code it finds inside the string you pass to
it. Use JSON.parse instead:
obj = JSON.parse(json);
On Wednesday, October 23, 2013 1:55:49 AM UTC-4, Avi Benita wrote:
>
> Hello,
>
> Is there a way to reference the data for creating the Google Org chart
> from an external text file/CSV in the server?
>
>
> I mean something like I do with HighCharts:
>
> $(function () {
> var chart1;
> $.get('graphdata/COUNTRY.txt?x='+microtime(), function(json){
> obj = eval('({'+json+'})');
> var $container = $('#container');
> $(document).ready(function() {
> chart1 = new Highcharts.Chart(obj)
> });
> });
> });
>
> Thanks
> Avi
>
>
>
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.