Hi All,
I am trying to show the district view of a US state.
I got the state map but it was plain without showing the regions. (the
below image is the California state). i need to show districts in it.
Code :
google.load('visualization', '1', {packages: ['geomap']});
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['Regions', 'Popularity'],
['CA-AB', 200],
['CA-BC', 400]
]);
var geomap = new google.visualization.GeoMap(
document.getElementById('visualization'));
var options = { region: 'US-CA' ,resolution :'provinces' , displayMode:
'regions' };
geomap.draw(data, options);
}
google.setOnLoadCallback(drawVisualization);
Thanks for you help.
--
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.