Hi Ilya, I can't be sure but I would suspect there is some incompatibility with IE 11 and the newer Array functions that we are using now. I don't have access to IE 11 at the moment, so if you could post some details about the error that is resulting (which should be visible in your browser's debugger), that might be enough for me to narrow it down. I assume this snippet is your entire code, and there is no other library you are loading, such as prototype.
On Thu, Feb 13, 2020 at 1:27 PM Ilya Shulim <[email protected]> wrote: > I am experiencing an issue with displaying google charts on IE 11. Below > code works on Mozilla and Chrome but not on IE. > > <head> > <script src="https://www.gstatic.com/charts/loader.js"></script> > <script> > google.charts.load('current', {packages: ['corechart']}); > google.charts.setOnLoadCallback(drawChart); > > function drawChart() { > // Define the chart to be drawn. > var data = new google.visualization.DataTable(); > data.addColumn('string', 'Element'); > data.addColumn('number', 'Percentage'); > data.addRows([ > ['Nitrogen', 0.78], > ['Oxygen', 0.21], > ['Other', 0.01] > ]); > > // Instantiate and draw the chart. > var chart = new > google.visualization.PieChart(document.getElementById('myPieChart')); > chart.draw(data, null); > } > </script> > </head> > <body> > <!-- Identify where the chart should be drawn. --> > <div id="myPieChart"/> > </body> > > Can anyone suggest what could be the possible cause of this behavior? > > Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Google Visualization API" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-visualization-api/14dd0b9e-3f36-4f74-a4b2-8d68a248e975%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/14dd0b9e-3f36-4f74-a4b2-8d68a248e975%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> Cambridge MA -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJOC6_CbzJVnpVRx6Lksjt1o2CVQDOd4%3DefK1eP9O4HNrg%40mail.gmail.com.
