Ahhh! You're right. How could I forget that. Thanks a lot Andrew. On Friday, July 18, 2014 11:42:23 AM UTC+8, cs 101 wrote: > > My google chart won't work on any version of IE. > > It displays this error message: 'undefined' is not an object (evaluating > 'a.runtimeStyle[c]') > > This is my code: > > <html> > > <head> > > <title>performance</title> > > <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([ > > ['Quiz', > 'Mark'], > > ['quiz > 1', 33], > > ['quiz > 2', 50], > > ['quiz > 3', 20], > > ['quiz > 4', 100] > > ]); > > > > var options = { > > title: 'Your Performance', > > hAxis: {title: 'Quiz', titleTextStyle: {color: 'blue' > }} > > }; > > > > var chart = new > google.visualization.ColumnChart(document.getElementById('chart_div')); > > chart.draw(data, options); > > } > > </script> > > </head> > > <body> > > <div id="chart_div" style="width: 450px; height: 250px;"></div> > > </body> > > </html> >
-- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/d/optout.
