Hi

I am using google visualization API to visualize data retrieved in
JSON format from a remote data endpoint .

I use the following code to query the endpoint and retrieve data in
Data Table format

var query = new google.visualization.Query('http://data-gov.tw.rpi.edu/
sparql?query-option=text&query=PREFIX++d%3A+%3Chttp%3A%2F%2Fdata-
gov.tw.rpi.edu%2Fvocab%2Fp%2F10040%2F%3E%0D%0ASELECT++%3Fstate+
%3Furban_home_broadband++%3Frural_home_broadband+%0D%0AWHERE+{+%0D%0A+
{%0D%0A++++++++++%3Fs+d%3Astate+%3Fstate+.%0D%0A++++++++++%3Fs+d
%3Aurban_internet_use_in_the_home_broadband_no+%3Furban_home_broadband
+.%0D%0A++++++++++%3Fs+d
%3Aurban_internet_use_in_the_home_urban_total_no+%3Furban_home_total+.+
%0D%0A++++++++++%3Fs+d%3Arural_internet_use_in_the_home_broadband_no+
%3Frural_home_broadband+.%0D%0A++++++++++%3Fs+d
%3Arural_internet_use_in_the_home_total_no+%3Frural_home_total+.%0D%0A+
+++++++++FILTER+%28%3Fstate+%21%3D+%22TOTAL+HOUSEHOLDS%22%29%0D%0A++++
+}%0D%0A}+%0D%0AORDER+BY+%3Fstate&service-uri=http%3A%2F%2Fdata-
gov.tw.rpi.edu%2Fsparql&output=gvds&callback=&tqx=&tp=');

      // Send the query with a callback function.
      query.send(handleQueryResponse);

    function handleQueryResponse(response) {
      if (response.isError()) {
        alert('Error in query: ' + response.getMessage() + ' ' +
response.getDetailedMessage());
        return;
      }

      var data = response.getDataTable();}


Now i am not sure how to use chart wrapper to wrap the above query.My
dataSource requires me to specify other parameters along with the
query.

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