Currently I'm trying to develop a heat map by city.
I'm able to get a heat map if I use the option resolution: provinces.
Here is the code. What am I missing?
google.load('visualization', '1', {'packages': ['geochart']});
google.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'City');
data.addColumn('number', 'color');
//data.addColumn('number', 'Units');
data.addRows([
['528', 5],
['534', 1]
]);
var options = {
region: 'US-FL',
displayMode: 'regions',
resolution: 'provinces',
colorAxis: { colors: ['salmon', 'red']},
colors: ['salmon', 'red']
};
var chart = new
google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);
};
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.