The problem was in the JSON format
http://code.google.com/apis/visualization/documentation/dev/implementing_data_source.html#jsondatatable

On Mar 22, 5:12 pm, Faraday <[email protected]> wrote:
> Hi.
>
> I was trying to change this example code to take data from another
> server that serve CSV or JSON, but was imposible.
>
> <script type="text/javascript">
>     google.load('visualization', '1', {'packages' : ['table']});
>     google.setOnLoadCallback(init);
>
>     var dataSourceUrl = 'http://other_server/data.json';
>     var query, options, container:
>     function init() {
>       query = new google.visualization.Query(dataSourceUrl);
>       container = document.getElementById("table");
>       options = {'pageSize': 5};
>       sendAndDraw();
>     }
>     function sendAndDraw() {
>       query.abort();
>       var tableQueryWrapper = new TableQueryWrapper(query, container,
> options);
>       tableQueryWrapper.sendAndDraw();
>     }
>     function setOption(prop, value) {
>       options[prop] = value;
>       sendAndDraw();
>     }
>   </script>
>
> Can someone help me?
>
> THX

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