I am trying to utilize the tool tips feature in the following line chart, please help.
<html>
<head>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var dataTable = new google.visualization.DataTable();
dataTable.addColumn('string', 'Month');
dataTable.addColumn('number', 'Hostile Deaths');
dataTable.addColumn('number', 'Non-Hostile Deaths');
dataTable.addColumn({type: 'string', role: 'tooltip'});
dataTable.addRows([
['Jan', 8, 8],
['Feb', 11, 6],
['Mar', 4, 5],
['Apr', 13, 6],
['May', 11, 13],
['Jun', 10, 5],
['Jul', 5, 3],
['Aug', 4, 3],
['Sept', 4, 6],
['Oct', 2, 7],
['Nov', 2, 9],
['Dec', 0, 3, 'Least Deadliest Month']
]);
var options = {
title: 'Operation Iraqi Freedom US Military Deaths, 2009',
backgroundColor: ['#999999'],
colors:['#cc0000','#ff6600'],
tooltip: {isHtml: true}
};
var chart = new google.visualization.ColumnChart(document.getElementById('col_chart_html_tooltip'));
chart.draw(dataTable, options);
}
}
</script>
</head>
<body>
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</body>
</html>