I think you have trailing commas which fail in IE.

ChartMan
On Apr 1, 2012 9:28 PM, "mborrill" <[email protected]> wrote:

> Any reason why this doesnt work in IE but its fine in Firefox ? ,
> thanks In advance
>
> <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 data = new google.visualization.DataTable();
>        data.addColumn('string', 'Year');
>        data.addColumn('number', 'Scanning Year 2012');
>
>        data.addRows([
>          ['Jan', 45321, ],
>          ['Feb', 1234, ],
>          ['March', 36547, ],
>                    ['April', 36547, ],
>                          ['May', 55432, ],
>                            ['June', 44322, ],
>          ['July', 34553,]
>        ]);
>
>        var options = {
>          title: 'Scanning Total Year 2012',
>          hAxis: {title: 'Month', titleTextStyle: {color: 'Black'}}
>        };
>        animation:{
>        duration: 1000,
>        easing: 'out'
>  };
>        var chart = new
> google.visualization.ColumnChart(document.getElementById('chart_div'));
>        chart.draw(data, options);
>      }
>    </script>
>
>        <script type="text/javascript">
>      google.load("visualization", "1", {packages:["corechart"]});
>      google.setOnLoadCallback(drawChart);
>      function drawChart() {
>        var data = new google.visualization.DataTable();
>        data.addColumn('string', 'Year');
>        data.addColumn('number', 'Scanning Year 2012');
>
>        data.addRows([
>          ['Jan', 45321, ],
>          ['Feb', 1234, ],
>          ['March', 36547, ],
>                    ['April', 36547, ],
>                          ['May', 55432, ],
>                            ['June', 44322, ],
>          ['July', 34553,]
>        ]);
>
>        var options = {
>          title: 'Scanning Total Year 2012',
>          hAxis: {title: 'Month', titleTextStyle: {color: 'Black'}}
>        };
>
>        var chart = new
> google.visualization.ColumnChart(document.getElementById('chart_div'));
>        chart.draw(data, options);
>      }
>    </script>
>
>
>
>
>
>        <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 = new google.visualization.DataTable();
>        data.addColumn('string', 'Year');
>        data.addColumn('number', 'Scanning Year 2012');
>
>        data.addRows([
>          ['Jan', 45321, ],
>          ['Feb', 1234, ],
>          ['March', 36547, ],
>                    ['April', 36547, ],
>                          ['May', 55432, ],
>                            ['June', 44322, ],
>          ['July', 34553,]
>        ]);
>
>        var options = {
>          title: 'Scanning Total Year 2012',
>          hAxis: {title: 'Month', titleTextStyle: {color: 'Black'}}
>        };
>
>        var chart = new
> google.visualization.ColumnChart(document.getElementById('chart_div'));
>        chart.draw(data, options);
>      }
>    </script>
>
>        <script type="text/javascript">
>      google.load("visualization", "1", {packages:["corechart"]});
>      google.setOnLoadCallback(drawChart);
>      function drawChart() {
>        var data = new google.visualization.DataTable();
>        data.addColumn('string', 'Year');
>        data.addColumn('number', 'Scanning Year 2012');
>
>        data.addRows([
>          ['Jan', 45321, ],
>          ['Feb', 1234, ],
>          ['March', 36547, ],
>                    ['April', 36547, ],
>                          ['May', 55432, ],
>                            ['June', 44322, ],
>          ['July', 34553,]
>        ]);
>
>        var options = {
>          title: 'Scanning Total Year 2012',
>          hAxis: {title: 'Month', titleTextStyle: {color: 'Black'}}
>        };
>
>        var chart = new
> google.visualization.ColumnChart(document.getElementById('chart1_div'));
>        chart.draw(data, options);
>      }
>    </script>
>
>
>
>
>
>
>
>  </head>
>  <body>
>    <div id="chart_div" style="width: 900px; height: 500px;"></div>
>          <div id="chart1_div" style="width: 900px; height: 500px;"></div>
>  </body>
> </html>
>
> --
> 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.

Reply via email to