Google Graph API – USA Map


You are free to copy and use this sample in accordance with the terms of the
Apache license (

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Google Visualization API Sample</title>
  <script type="text/javascript" src=""></script>
  <script type="text/javascript">
    google.load('visualization', '1', {packages: ['geochart']});

    function drawVisualization() {
      var data = google.visualization.arrayToDataTable([    
        ['State',   'Sales'],
        ['CA', 4000],
        ['NY', 6000],    
        ['NJ', 7000],
        ['TX', 17000],
        ['VA', 17000]
      var geochart = new google.visualization.GeoChart(
      geochart.draw(data, {width:600, height: 400, region: 'US', resolution: 'provinces'});

<body style="font-family: Arial;border: 0 none;">
<div id="visualization"></div>



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.