Hello There,

I am using the geochart in order to display the map on my web page but it 
seems giving an error "this.each is not a function" so could any one help 
me out.

Here is my code

 <script type='text/javascript' src='https://www.google.com/jsapi'></script>
        <script type="text/javascript">
            google.load('visualization', '1', {'packages': ['geochart']});
        </script>

function drawMap() {
  var data = google.visualization.arrayToDataTable([
    ['Country', 'Popularity'],
    ['Germany', 200],
    ['United States', 300],
    ['Brazil', 400],
    ['Canada', 500],
    ['France', 600],
    ['RU', 700]
  ]);

  var geochart = new google.visualization.GeoChart(
      document.getElementById('chart_div'));
  geochart.draw(data, {width: 556, height: 347});
}
google.setOnLoadCallback(drawMap);


Thanks,
Jignesh

-- 
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/d/optout.

Reply via email to