We were now aware of this issue. Does it work properly for you if the div was there in advanced and not created on the fly as you do? Maybe waiting a couple milliseconds before calling the chart's draw on this div will solve the issue? Also, you might want to give the div a size or/and specify the size explicitly in the options.
Viz Kid On Fri, Feb 17, 2012 at 1:26 AM, MJ <[email protected]> wrote: > Hi, > > I've been researching this for days and still couldn't find a way to > make it work: > > function drawChart(index) { > var win = window.open(); > win.document.write('<div id="chart_div"></div>'); > win.document.close(); > var data = new google.visualization.DataTable(); > var chart = new > google.visualization.BarChart(win.document.getElementById('chart_div')); > > [some code to populate the data table] > > chart.draw(data, options); > > This code would display a bar chart in a new window on all major > browsers (Chrome, FF7, FF10, Safari, Opera, IE7, IE8, IE9 in the > compatibility mode). However, no graph is shown in IE9 in the > standard mode. Instead, the data sent back by Google Visualization > API will flash across the screen. When I view the HTML code of the > page, I'll see the iframe inserted by the Visualization API which > includes an empty <div chart_area>. > > Could someone on the Google Visualization API team please shed some > light on what's going on and how to get the graph to show? > > By the way, I did experiment with all sorts of DOCTYPE and meta flags > and none of them helped. > > Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-visualization-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
