We are implementing Geo Chart heat Map for our website, but they have limitations to display regions for UK, they can list only 4 Regions only, England, Scotland, Wales and Northern Ireland and Not more than that. Can anyone help me to know if we can list all regions for UK and also if we can show cities, counties under those regions in UK as well like Preston etc.
Also can we pass more then 3 parameters to show more data on mouse over.
<script type='text/javascript' src='https://www.google.com/jsapi'></script>
<script type='text/javascript'>
google.load('visualization', '1', {'packages': ['geochart']});
var chart;
var data;
var options;
google.setOnLoadCallback(drawRegionsMap);
function drawRegionsMap() {
data = google.visualization.arrayToDataTable([
['Region', 'Popularity', 'Total Votes'],
['England', 8, 6],
['Scotland', 8, 6],
['Wales ', 9, 7],
['Northern Ireland', 2, 5],
['United Kingdom', 2, 4]
]);
var maxV = 5; // to ensure scale is equal on both ends.
var minV = maxV*-1;
options = {
colorAxis: {colors: ['blue', 'white', 'red'], minValue: minV, maxValue: maxV},
};
chart = new google.visualization.GeoChart(document.getElementById('chart_div'));
chart.draw(data, options);
google.visualization.events.addListener(chart, 'regionClick', selectHandler);
};
function selectHandler(e) {
var selection = e['region'];
//alert(selection);
options['resolution'] = 'provinces';
options['region'] = selection;
chart.draw(data, options);
document.getElementById('goback').style.display='block';
};
</script>
As you can see, only 3 parameters, can we pass extra parameters? or any tool tip for it.
thanks in advance