javascript - Google Charts not showing in IE 8 -


hi i've got basic chart isn't showing in ie 8 or 9. works in ie 10. space blank. here's code:

   var colors = ['#c02942', '#53777a', '#ecd078', '#542437', '#d95b43'];     var data = google.visualization.arraytodatatable([['month', 'clicked','delivered','sent'],['12/11', 0,0,0],['1/12', 1,1,1],['2/12', 0,0,1],['3/12', 0,0,0],['4/12', 0,0,0],['5/12', 0,0,1],['6/12', 0,0,2],['7/12', 0,0,0],['8/12', 0,0,2],['9/12', 0,0,0],['10/12', 0,0,0],['11/12', 0,0,0],['12/12', 0,0,0],['1/13', 0,0,0],['2/13', 0,0,0],['3/13', 0,0,1],['4/13', 0,0,0],['5/13', 0,0,3],['6/13', 0,0,0]]);      var  options = {         width: 650,         colors: colors,         chartarea: { left: 50, top: 20},         haxis: {showtextevery: 2},         isstacked: true     };   chart = new google.visualization.areachart(document.getelementbyid('chart_div'));  chart.draw(data, options); 

tia

i ran code in ie9, , it's throwing error in javascript console (hit f12 bring console up). error 'colors not defined'. unless you've defined colors someplace else, that's error i'm seeing.


Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -