Hey All.

This may be a simple issue I'm missing here but I can't render the geochart 
in this page. I'm not seeing the problem.

Here's the page html. And and example of the data table.

<html><head>
<title></title>
 
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.google.com/jsapi";></script>
<script type="text/javascript">
 
  // Load the Visualization API and the controls package.
  // Packages for all the other charts you need will be loaded
  // automatically by the system.
  google.load('visualization', '1.0', {'packages':['geochart']});
 
  // Set a callback to run when the Google Visualization API is loaded.
  google.setOnLoadCallback(initialize);
 
function initialize() {
  // Replace the data source URL on next line with your data source URL.
  var query = new 
google.visualization.Query('https://docs.google.com/spreadsheet/tq?key=0AiLed_zknLyedDBQSlJzaWpXeFNtbENSZG4tOEVFdmc&usp=sharing');
query.setQuery('SELECT *');  
  // Send the query with a callback function.
  query.send(drawDashboard);
}
 
 
function drawDashboard(response) {

  var data = response.getDataTable();

  var speedMap = new google.visualization.ChartWrapper({
    'chartType': 'GeoChart',
    'containerId': 'chart_divSpeed',
    'options':{
'displayMode':'markers',
'region':'US',
'resolution':'metros'};
    };
  });

  var dashboard = new 
google.visualization.Dashboard(document.getElementById('dashboard_div')).draw(data)
    
  }

</script>
 
</head>
<body>

<div id='header' style='position:absolute; left:0px; top:0px; 
background-color:#CACADC; width:1500px; height:75px'>
<div id="title" style="position:absolute; left:175px; top:5px; 
font-size:200%; font-family:arial; color:#0066FF">Speed</div>
 

    <div id="dashboard_div">
<div id="chart_divSpeed"></div> 
    </div>
</div>
    
<body>
</html>


Lat                  Long Speeding Count       Facility
40.576855  -74.216251 1             CARTERET                               
                     
35.249972  -80.886371 10             CHARLOTTE                             
                      
40.176611         -74.773174 6             MORRISVILLE                     
                            

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to