Browser hangs when Google Charts are used with .Do I have any options other than using jquery tabs instead visualforce tabs.
<apex:page sidebar="false" >
<h1>Google Chart Test</h1>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var options = {
title: 'Company Performance',
vAxis: {title: 'Year', titleTextStyle: {color: 'red'}}
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}
</script>
<apex:tabPanel title="myTab" switchType="server">
<apex:tab >
<div id="chart_div" style="width: 900px; height: 500px;"></div>
</apex:tab>
</apex:tabPanel>
</apex:page>