I try this simple and static example and it works succefully in firefox putting all in a php/html file directy, but when i do the same in joomla component (putting the js in the view.html.php file and the html code in default.php, or also both in the default.php, the same example doesn't have tooltips. And in more complex examples happens the same thing...
<head>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['corechart']});
</script>
<script type="text/javascript">
function drawVisualization() {
// Some raw data (not necessarily accurate)
var data = google.visualization.arrayToDataTable([
['Month', 'Bolivia', 'Ecuador', 'Madagascar', 'Papua Guinea','Rwanda', 'Average'],
['2004/05', 165, 938, 522, 998, 450, 614.6],
['2005/06', 135, 1120, 599, 1268, 288, 682],
['2006/07', 157, 1167, 587, 807, 397, 623],
['2007/08', 139, 1110, 615, 968, 215, 609.4],
['2008/09', 136, 691, 629, 1026, 366, 569.6]*/
]);
// Create and draw the visualization.
var comboChart = new google.visualization.ComboChart(document.getElementById('chart_div'));
comboChart.draw(data, {
title : 'Prueba',
seriesType: "bars",
series: {2: {type: "line"}}
});
var candleChart = new google.visualization.CandlestickChart(document.getElementById('chart_div2'));
candleChart.draw(data);
}
google.setOnLoadCallback(drawVisualization);
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="chart_div" style="width: 700px; height: 400px;"></div>
<div id="chart_div2" style="width: 700px; height: 400px;"></div>
</body>
</html>