I guess I have to work with Markers then.
Too bad you can't kml for the cities.
That might work.
On Wednesday, March 28, 2012 2:01:34 PM UTC-4, asgallant wrote:
> I think you want to set the resolution to 'metros'; 'provinces' is for
> assigning data for the state as a whole, not sub-regions of a state.
>
> On Wednesday, March 28, 2012 9:14:49 AM UTC-4, Prescient INC wrote:
>>
>> 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 view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/FEDnuUlCfAoJ.
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.