I was trying to identify and coloring US states in the basis of some values. But it takes only country code. I tried the below code-
var geomap_chartdata = google.visualization.arrayToDataTable([
['States', 'Popularity'],
['ID', 200],
['IN', 300],
['KY', 400],
['LA', 500],
['MA', 600],
['MT', 600],
['OH', 600],
['NY', 600],
['WA', 700]
]);
var options = {};
options['displayMode'] = 'regions';
var chart = new google.visualization.GeoChart(document.getElementById('revenue_inbound_map'));
chart.draw(geomap_chartdata, options);
But this is not working. Instead of recognizing the State codes geo map identify those as country code. Please help me to fix this.