Geochart - Singapore (SG) issue

1,189 views
Skip to first unread message

Ambrish Bhargava

unread,
Jan 9, 2014, 11:10:16 AM1/9/14
to google-visua...@googlegroups.com
Hi All,

I am using Geo charts and trying some examples given in the geochart page

I am trying to plot data for Singapore ISO, but it is not coming up. Looks like the geometry for Singapore (SG) is missing.

How can I get the geometry of SG in the geocharts? Is it only SG or there are more ISOs for which geometry is not present?

Here is the code:

====CODE_STARTS====

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Google Visualization API Sample</title>
  <script type="text/javascript" src="//www.google.com/jsapi"></script>
  <script type="text/javascript">
    google.load('visualization', '1', {packages: ['geomap']});

    function drawVisualization() {
      var data = google.visualization.arrayToDataTable([
        ['Country', 'Popularity'],
        ['SG', 700]
      ]);
    
      var geomap = new google.visualization.GeoMap(
          document.getElementById('visualization'));
      geomap.draw(data, null);
    }
   
    google.setOnLoadCallback(drawVisualization);
  </script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="visualization" style="width: 800px; height: 400px;"></div>
</body>
</html>
====CODE_ENDS====

Regards,
Ambrish

asgallant

unread,
Jan 9, 2014, 1:29:29 PM1/9/14
to google-visua...@googlegroups.com
Singapore (along with a handful of other countries) is too small to draw on the world map.

Ambrish Bhargava

unread,
Jan 9, 2014, 10:02:46 PM1/9/14
to google-visua...@googlegroups.com
Hi,

Can we have a point for these countries/ISOs. This will help us a lot.

Regards,
Ambrish

asgallant

unread,
Jan 10, 2014, 10:43:17 AM1/10/14
to google-visua...@googlegroups.com
I can't speak for the dev team, but I'm not sure there is a way for them to give you a point for countries that small - they would in all probability be smaller than a single pixel on the map.  You need to use a continent level, region level, or country level map to see them.

rpra...@yahoo.com

unread,
Jan 10, 2014, 11:19:31 AM1/10/14
to google-visua...@googlegroups.com

Ambrish,

VectorWorkz GeoChart is capable of rendering any region map. You should check with them support AT vectorworkz DOT com.

Site also shows what's different between the Google GeoChart and the VectorWorkz GeoChart.

Regards
Praveen

On Thursday, January 9, 2014 10:02:46 PM UTC-5, Ambrish Bhargava wrote:

Sergey Grabkovsky

unread,
Jan 10, 2014, 6:28:08 PM1/10/14
to google-visua...@googlegroups.com

One thing that you could do is to use the markers mode on the GeoChart. That way, Singapore will get geocoded to a lat/long point, and will be displayed on the map. We are actively working on improving our maps, and will try to take this use case into account.

--
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 google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Manish Maurya

unread,
May 17, 2018, 11:01:38 AM5/17/18
to Google Visualization API
Is this issue fixed in new releases?
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.

ghanahshyam koli

unread,
Sep 21, 2018, 11:57:00 AM9/21/18
to Google Visualization API
Any updates on this..
Reply all
Reply to author
Forward
0 new messages