Hi All,
I am new to this and I was able to run my code in ajax apis playground
but it doesn't seem to work in html.   Can someone tell a new guy
where I may have gone wrong?

*** html ***
<html>
  <head>
    <script type="text/javascript" src="http://www.google.com/jsapi";></
script>
    <script type="text/javascript">

                function drawVisualization() {
                  // To see the data that this visualization uses, browse to
                  // 
http://spreadsheets.google.com/ccc?key=pCQbetd-CptGXxxQIG7VFIQ
                  var query = new google.visualization.Query(
                          'http://spreadsheets.google.com/pub?
key=tgL9Ul2IxWzzFWyAkSdiRRg&pub=1');

                  // Apply query language.
                  query.setQuery('SELECT A,B ORDER BY B');

                  // 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();
                  visualization = new google.visualization.LineChart
(document.getElementById('visualization'));
                  visualization.draw(data, {legend: 'bottom'});
                }

    </script>
  </head>

  <body>
    <div id="chart_div"></div>
  </body>
</html>

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