mboyaci / google-ajax-examples

Automatically exported from code.google.com/p/google-ajax-examples
0 stars 0 forks source link

Tasmania, the state of Australia is not being recognized. #93

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Visit 
http://code.google.com/apis/ajax/playground/?type=visualization#geo_chart
2. Enter:

function drawVisualization() {
  var data = new google.visualization.DataTable();
  data.addRows(6);
  data.addColumn('string', 'Country');
  data.addColumn('number', 'Popularity');

   data.addRows([
      ['Victoria', 2761477 ],
     ['Tasmania', 380181],
      ['New South Wales', 1324110],
      ['Queensland', 959574],
      ['Northern Territory', 907563],
      ['Western Australia', 65587],
      ['South Australia', 607906],
     ['New Zealand', 607906],

    ]);

  var options = {
      region: 'AU',
      width: 556,
      height: 347,
      displayMode: 'regions',
      colorAxis: {colors: ['#595526', '#ffe201']},
      resolution: 'provinces'
    };

  var geochart = new google.visualization.GeoChart(
      document.getElementById('visualization'));
  geochart.draw(data, options);
}

3. Tasmania, the little island under Australia is still white.

What is the expected output? What do you see instead?

THe state of Tasmania being some shade of yellow

What version of the product are you using? On what operating system?

Not sure, Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by yummydwa...@gmail.com on 13 Dec 2011 at 4:47

Attachments:

GoogleCodeExporter commented 9 years ago
This is a genuine issue.  Tasmania is a separate state of Australia.

Original comment by emd...@gmail.com on 11 Sep 2012 at 5:46

GoogleCodeExporter commented 9 years ago
Use the ISO codes instead and it works:

 data.addRows([
                ['AU-VIC', 2761477 ],
                ['AU-TAS', 380181],
                ['AU-NSW', 1324110],
                ['AU-QLD', 959574],
                ['AU-NT', 907563],
                ['AU-WA', 65587],
                ['AU-SA', 607906]
            ]);

Original comment by graham.p...@shinetech.com on 9 Oct 2013 at 3:31