Prescient INC
unread,Mar 28, 2012, 9:14:49 AM3/28/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
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);
};