0

这是我的代码:

  <html>
  <title>report</title>
  <head>


  <script type="text/javascript" src="https://www.google.com/jsapi"></script>

  <script type="text/javascript">
     google.load("visualization", "1", {packages:["corechart"]});

     function soso(){
       var data_flow = new google.visualization.DataTable();
       data_flow.addColumn('string', 'Version');
       data_flow.addColumn('number','flow');
       data_flow.addRows([['20120125',466.0],['20120130',173.0],['20120203',160.0],['20120208',529.0],['20120213',210.0]]);
       var options = {width: 2200, height: 540,title: ''}; 
       var chart_flow= new google.visualization.LineChart(document.getElementById('checkin-column'));
       chart_flow.draw(data_flow, options);
     }
     function loveu()
     {
        var data_flow_1 = new google.visualization.DataTable();
       data_flow_1.addColumn('string', 'Version');
       data_flow_1.addColumn('number','flow');
       data_flow_1.addRows([['20120125',466.0],['20120130',173.0],['20120203',160.0],['20120208',529.0],['20120213',210.0]]);
       var options5 = {width: 2200, height: 540,title: ''};
       var chart_flow_1= new google.visualization.LineChart(document.getElementById('redemption-table'));
       chart_flow_1.draw(data_flow_1, options5);
     }
     function drawChart() {
       soso();
       loveu();

     }
      google.setOnLoadCallback(drawChart);
   </script>
   </head>
   <body>
  <h4>dfs</h4><br>
  <br><br>
  <div id="checkin-column"></div>
    <p></p>
    <div id="redemption-table"></div>
   </body>
   </HTML>

当我删除:“< h4 > dfs </ h4 >”时,我的图表在 iexplorer 中工作正常,但是当我不删除它时,第一个图表工作正常,但第二个图表的轴没有出现! !试试看,你会看到(在 Internet Explorer 上)。我需要帮助来解决这个问题,当同一页面中有多个图表时,我会面临这些图表的奇怪行为

4

1 回答 1

1

问题:我在一页上有 3 个图表,但第 3 个图表的轴未在 IE 中显示

解决方案:我将 3 个 div 作为表格中的单独行,所有 3 个图表现在都显示了它们的轴!

希望这可以帮助。干杯

于 2012-06-18T20:12:48.820 回答