Does any one know why this code shows nothing in IE8 but does show that pie 
chart in IE9 and IE7?

<!doctype html>
<html>
  <head>
  <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 pieData = [];
pieData.push(['Task', 'Hours per Day'], ['Work', 11], ['Eat', 2]);
 var data = google.visualization.arrayToDataTable(pieData);

        var options = {
  legend: {
  position: 'bottom'
  },
  backgroundColor: 'none'
        };

        var chart = new 
google.visualization.PieChart(document.getElementById('chart_div'));
        chart.draw(data, options);
      }
    </script>
  </head>
  <body>
    <div id="chart_div" style="width: 300px; height: 300px;"></div>
<div id="new_chart_div" style="width: 300px; height: 300px;"></div>
  </body>
</html>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-chart-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to