Josh, It appears that IE8 interprets transparent background colors differently from other browsers. There is no solution within gviz that I am aware of, but you might be able to do something with CSS separate from gviz. Use a CSS selector that targets the appropriate element and set its background in one of the other ways that might work. See http://stackoverflow.com/questions/3975688/css-background-opacity-with-rgba-not-working-in-ie-8 for some ideas.
Please post again if you find a solution. Good luck. Also, by the way, you might try posting to the other public gviz list that gets more traffic: [email protected] dan On Wed, Feb 20, 2013 at 9:14 AM, Josh Bennett <[email protected]>wrote: > 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. > > > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 562D 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton MA -- 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.
