I have a google map that pulls the underlying data from a Google Spreadsheet. I would like to customize the Tooltip to add an image as well as css style while pulling underlying data from the spreadsheet. I can't seem to find any information on how to customize a tooltip that pulls underlying data from a spreadsheet, but i see plenty of options of customizing using the Google Map API without pulling underlying data. Here is an example of my code but just using data embedded into the code, but same concept.
<!DOCTYPE html>
<html>
<style>
.visualization{
width: 1200;
height: 1200;
}
</style>
<body>
<div id="visualization"></div>
<script>
google.load('visualization', '1.1', {packages: ['geochart'], callback: drawVisualization});
google.load('visualization', '1', {
packages: ['corechart', 'map']
});
function drawVisualization() {
var data = google.visualization.arrayToDataTable([
['Country', 'Value', {role: 'tooltip', p:{html:true}}],
['Russia', 5, 'Hello world'],
var options = {
width: 1200,
height: 1200 };
var chart = new google.visualization.IntensityMap(document.getElementById('visualization'));
chart.draw(data, options);
}
</script>
</body>
</html>