There is no province-level map of North America (or any of the other 
continent-level maps, I suspect), so you can't do what you want in one map.

On Saturday, June 1, 2013 6:11:07 AM UTC-4, Oliv Gir wrote:
>
> Hi
> I really would like to colorize two regions (different countries) on the 
> same Geochart map.
> For instance, Canada | British Colombia and USA | Florida.
> Here is my sample code :
>
>
>
>  google.load('visualization', '1', {'packages': ['geochart']});
>      google.setOnLoadCallback(drawRegionsMap);
>
>       function drawRegionsMap() {
>  var data = new google.visualization.DataTable();
> data.addColumn('string', 'Country'); // Implicit domain label col.
> data.addColumn('number', 'Value'); // Implicit series 1 data col.
> data.addColumn({type:'string', role:'tooltip'}); // 
>
> data.addRows([
>
> [{v:"CA-BC",f:"CA-BC"},150,"some info"],
> [{v:"US-FL",f:"US-FL"},350,"some info"],
>  
> ]);
>         
>
>       var options = {
>
>    displayMode: 'regions',
>    resolution: 'provinces',
>
>    // 021: Nothern America
>    region: '021'       
>
>   };
>
>
>
>         var chart = new 
> google.visualization.GeoChart(document.getElementById('chart_div'));
>         chart.draw(data, options);
>     };
>
>
>
>  google tells me "Requested map does not exist" !!
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to