Bug: Geomap for Australia is offset too far north

23 views
Skip to first unread message

nickdos

unread,
Jun 22, 2009, 7:57:03 PM6/22/09
to Google Visualization API
When viewing a geomap for just Australia (AU), there is a large area
of ocean filling the bottom 40% of the map div, with the Australian
continent pushed too far to the top of the map.

I'm pretty sure this is due to the fact that Australia has a tiny
island near Antarctica (Macquarie Island), which is affecting the
"bounds" that are generated for Australia. I have seen the same thing
with other GIS applications.

I also note in the example given below that the values given to
"Tasmania" do not display on the map. This might be a bug too.

Example code:

google.load('visualization', '1', {packages: ['geomap']});

function drawVisualization() {
var data = new google.visualization.DataTable();
data.addRows(6);
data.addColumn('string', 'State');
data.addColumn('number', 'Popularity');
data.setValue(0, 0, 'Victoria');
data.setValue(0, 1, 200);
data.setValue(1, 0, 'New South Wales');
data.setValue(1, 1, 300);
data.setValue(2, 0, 'Tasmania');
data.setValue(2, 1, 400);
data.setValue(3, 0, 'South Australia');
data.setValue(3, 1, 500);
data.setValue(4, 0, 'Queensland');
data.setValue(4, 1, 600);
data.setValue(5, 0, 'Northern Territory');
data.setValue(5, 1, 700);

var options = {};
options['region'] = 'AU';

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

google.setOnLoadCallback(drawVisualization);

Ketan Shah

unread,
Sep 7, 2011, 5:38:26 AM9/7/11
to google-visua...@googlegroups.com
+1

I don't get the state of "Tasmania" as well on my geochart.

I also tried ISO_3166-2 format as well http://en.wikipedia.org/wiki/ISO_3166-2:AU for the same but didn't any response.

Any workarounds?

Thanks,
-Ketan.

EZChart

unread,
Sep 8, 2011, 4:12:53 AM9/8/11
to google-visua...@googlegroups.com
There is indeed a bug in GeoChart where we don't show data for Tasmania (or other areas with ISO 3166-2 of XX-XXX format).
We're working on a fix which will be available around 6 weeks from now.

Thanks,
EZChart

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/XW-xrgx4BskJ.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Reply all
Reply to author
Forward
0 new messages