Staffan Estberg Staffan Estberg - 6 months ago 23
Javascript Question

Google Charts: Show only a certain country

I'm digging into Google Charts on the account of a new client, and was wondering if it's possible to show only a certain country using the Map API.
I've managed to set up selected regions but I can't seem to find a way to exclude neighboring countries.
Would appreciate any help or direction on this subject.

Example of what I'm referring to - (Don't want to use this library however.)


It is possible to display only a certain country using the Google Charts API. The way to do it is to set the region in the options variable and use the options variable when you draw the map.

var options = {};
options['region'] = 'AU';
geomap.draw(data, options);

Check out the example provided in the API documentation: