Hello all,

I am trying to display a GeoChart with custom resolution as follows:

   - Continents: Africa [002], Asia [142], Europe [150]
   - Sub-continents: North America [021], South America [005]

I managed to do each one separately by defining the 'continents' resolution 
for the first one and 'subcontinents' for the second one. However, I cannot 
achieve what I want in the same map. Is there any way to create a custom 
list and provide it as the data source instead of the resolution (i.e. 
provide a list of [002, 142, 150, 021, 005])?

Please find below an example for reference:

function drawVisualization() {
  var data = google.visualization.arrayToDataTable([
    ['Region', 'Popularity'],
    ['002', 200], // Africa : displayed when resolution:'continents'
    ['021',300] // North America : displayed when resolution:'subcontinents'
  ]);

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

Best regards,

Sami


-- 
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